GithubHelp home page GithubHelp logo

maxlego08 / templateplugin Goto Github PK

View Code? Open in Web Editor NEW
92.0 2.0 22.0 449 KB

A template for creating minecraft plugin from 1.8 to 1.19

Home Page: https://groupez.dev

License: GNU General Public License v3.0

Java 100.00%
pagination inventory json itemstack scoreboard minecraft spigot plugin

templateplugin's Introduction

Template Plugin

Here is a simple project for the quick creation of minecraft plugin. Works from version 1.8 to version 1.19+

Documentation: https://drawerPlugin.groupez.dev/

GroupeZ

https://groupez.dev is a marketplace that allows you to sell your plugins without any charge !

Features

  • Commands
  • TabCompleter
  • Inventories
  • Json file
  • Useful function (in the class ZUtils)
  • ItemBuilder
  • CooldownBuilder
  • TimerBuilder
  • Pagination
  • Inventory button
  • Custom Event
  • YML Loader (itemstack and button)
  • Scoreboard (https://github.com/MrMicky-FR/FastBoard)
  • Placeholder UTILS

templateplugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

templateplugin's Issues

issue with materials getId() is deprecated

When I compile the template without any modifications using a 1.15.2 buildtools spigot.jar to satisfy the local dependencies, I get this error when running on tuinity (a fork of papermc that adds unticked view distance, i have not tried spigot). The getId() method of materials is deprecated, but I see you using it in the problem code. I think you have to use the name() method and reference the materials by their names (String) instead of by ID (int).

How are you able to make this work on 1.15.2? The only way I can make it work is to completely rip out inventory manager, which sucks, because I want to use that feature in the plugin I'm writing.

If you are going to advertise support for 1.15.2, then this really needs to be fixed.

[03:22:32 INFO]: [TemplatePlugin] Enabling TemplatePlugin v0.0.2.2
[03:22:32 INFO]: [TemplatePlugin v0.0.2.2] === ENABLE START ===
[03:22:32 INFO]: [TemplatePlugin v0.0.2.2] Plugin Version V0.0.2.2
[03:22:32 ERROR]: Error occurred while enabling TemplatePlugin v0.0.2.2 (Is it up to date?)
java.lang.ExceptionInInitializerError: null
        at fr.maxlego08.template.Template.onEnable(Template.java:25) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:364) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:470) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:384) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:488) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:299) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:895) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.IllegalArgumentException: Cannot get ID of Modern Material
        at org.apache.commons.lang.Validate.isTrue(Validate.java:136) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at org.bukkit.Material.getId(Material.java:3334) ~[patched_1.15.2.jar:git-Tuinity-"e0cce97"]
        at fr.maxlego08.template.zcore.utils.ZUtils.<clinit>(ZUtils.java:244) ~[?:?]
        ... 10 more
[03:22:32 INFO]: [TemplatePlugin] Disabling TemplatePlugin v0.0.2.2
[03:22:32 INFO]: [TemplatePlugin v0.0.2.2] === DISABLE START ===
[03:22:32 INFO]: [TemplatePlugin v0.0.2.2] === DISABLE DONE (0ms) ===

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.