Code Monkey home page Code Monkey logo

classes's Introduction

Classes

This plugin adds a class system to your Minecraft server. You can make your own classes with customizable modifiers and perks. Level up in your classes and get ready!

Features

  • Custom class system
  • Custom modifiers and perks

Configuration

There is two files for configuration. lang.yml to customize the messages and config.yml to configure the plugin. You can see the full commented versions at the GitHub repository.

Commands

Command Description Permission Needed
/class <class> block enchantment add Block an enchantment for a class classes.block.enchantment.add
/class <class> block enchantment remove Block an enchantment for a class classes.block.enchantment.remove
/class <class> block enchantment list Block an enchantment for a class classes.block.enchantment.list
/class <class> block material add Block a material (item or block) for a class classes.block.material.add
/class <class> block material remove Block a material (item or block) for a class classes.block.material.remove
/class <class> block material list Block a material (item or block) for a class classes.block.material.list
/class <class> block potion add Block a potion effect type for a class classes.block.potion.add
/class <class> block potion remove Block a potion effect type for a class classes.block.potion.remove
/class <class> block potion list Block a potion effect type for a class classes.block.potion.list
/class <class> modifier add Add a modifier to a class classes.modifier.add
/class <class> modifier remove Add a modifier to a class classes.modifier.remove
/class <class> modifier list Add a modifier to a class classes.modifier.list
/class <class> perk add Add a perk to a class classes.perk.add
/class <class> perk remove Add a perk to a class classes.perk.remove
/class <class> perk list Add a perk to a class classes.perk.list
/class <class> delete Delete a class classes.delete
/class <class> info Information about a class classes.info
/class <class> join Join to a class classes.join
/class <class> kit get Get the kit of your class. Players with permission classes.admin get any kit using this command classes.kit.get
/class <class> kit update Update the contents of a class kit classes.kit.update
/class <class> kit clear Clear a class kit classes.kit.clear
/class <class> members See all the members in a class classes.members
/class set criteria Change the criteria, the way of leveling up at a class classes.set.criteria
/class set description Change the description of a class classes.set.description
/class set icon Change the icon of a class classes.set.icon
/class create Create a new class classes.create
/class leave Leave a class classes.leave
/class choose Choose a class classes.choose

Permissions

Most of the permissions are already given at commands section. This plugin also supports permission parenting. You can use * character to select children permissions (classes.*, classes.block.*, classes.block.perk.* etc.). There are still two permissions left to explain:

Permission Description
classes.use Main permission required to run any command.
classes.admin Allows you to get any kit using /class <class> kit get

classes's People

Contributors

efekos avatar

Watchers

 avatar

Forkers

svaningelgem

classes's Issues

Make classes persistent?

Right now it looks like you can enforce a class, but it seems not to survive a reboot of the server.
Is there a way that this can be configured?

Thanks

Be able to add "weaknesses"

Right now, you can add for example +1 attack damage. But you can't add -1 attack damage.

Could you adjust this so we can have a more balanced class system?

Thanks

NullPointerException on disconnect

We set up the server with:

class-required: true

So every time someone enters, they'll be forced to choose a class.

I logged in, but didn't choose one. And when I quit, this happened:

[13:46:44 INFO]: DjomlaPrangija lost connection: Disconnected
[13:46:44 INFO]: DjomlaPrangija left the game
[13:46:44 WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.openInventory(org.bukkit.inventory.Inventory)" because "this.owner" is null
[13:46:44 WARN]:        at Classes-1.0.3.jar//me.efekos.simpler.menu.Menu.open(Menu.java:128)
[13:46:44 WARN]:        at Classes-1.0.3.jar//me.efekos.simpler.menu.MenuManager.Open(MenuManager.java:113)
[13:46:44 WARN]:        at Classes-1.0.3.jar//dev.efekos.classes.menu.ChooseClassMenu$1.run(ChooseClassMenu.java:83)
[13:46:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101)
[13:46:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[13:46:44 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1646)
[13:46:44 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:447)
[13:46:44 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1525)
[13:46:44 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1226)
[13:46:44 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[13:46:44 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)

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.