Simple Skills & Leveling

Discussion in 'Plugin Requests' started by user_91250433, Aug 22, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    user_91250433

    Plugin category: RPG
    Minecraft version: 1.13.1
    Suggested name: SimpleLevels
    What I want: I want simple blank skilling plugin which can be configured in .yml files, it would give XP for every block you break and tools/ items/ gamemodes should not affect anything.

    Ideas for commands:
    /skills - This command lists all skills, it's current level, XP and how much XP in total is needed for next level.


    Permissions:

    simplelevels.skills - /skills command

    config.yml
    # Each line is level and it's XP, doesn't matter what number or how is it called.
    # LevelName : XP

    Level 1 : 0
    Level 2 : 20
    Level 3 : 30
    Level 4 : 40
    Level 5 : 50
    Level 6 : 60
    Level 7 : 70
    Level 8 : 80
    Level 9 : 100
    Master Level : 300

    messages.yml

    # Global message is sent to everyone globally.
    # <MaxLevelName> = Level name in last line in config.yml
    # <SkillName> = Title of .yml file in “skills” folder.
    # <LevelName> = Level name in config.yml file.

    max_global_message: <playername> has achieved <MaxLevelName> in <skillname>.
    skills_command: My <skillname> skill is <LevelName>, XP: <number>, Next level: <number>.
    #note: next level total Xp, not the remaining.
    every_level_up: Congratulations! You have reached <LevelName> in <skillname> skill.
    CMD_Error: Error in"<filename>.yml", disabling plugin. Delete file to get default.

    "Skills" Folder - Every .yml file in this folder is a skill.
    ExampleSkill.yml
    # Each line is block ID and XP for breaking it.
    # BlockID : XP

    dirt : 1
    grass_block : 5



    "Players" Folder - Every .yml file in this folder is player XP save file.
    Exampleplayer.yml
    # Each line is skill name and current gathared XP.
    # SkillName : XP

    ExampleSkill : 20
    ExampleSkill2 : 0

    Edit: if anyone else is planning to make this plugin i wanted to add another idea.
    Setting.yml
    gather_xp_after_max_level: true
    Auto save: 10 # in minutes

    Sound settings:
    block breaking_sound: false #this can be skipped if not implemented
    sound ID:
    levelup sound: true
    sound ID:
    max level up sound: true
    sound ID:
     
    Last edited by a moderator: Sep 27, 2018
  2. Offline

    DairyKing__

    Hey there, I am currently working on this for ya. Have most of it done. Taking a little while as I am using what little time I have available between work and other errands.
     
    user_91250433 likes this.
  3. Offline

    user_91250433

    Awesome!!!
    Can't wait :)
     
  4. Offline

    DairyKing__

    A little update for you, I have everything working as far as the skills system goes. I just need to add the configurable messages and add in skill specific level names. :)

    Alright I think I have everything done that you asked for. If I missed anything feel free to tell me and I will see what I can do. Here is the download: https://www.dropbox.com/s/7tskms4y1mkvzpk/SimpleSkills.jar?dl=1

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 30, 2018
    user_91250433 likes this.
  5. Offline

    user_91250433

    @DairyKing__
    it is really good and works smoothly.
    Thanks!

    Edit:
    @DairyKing__
    Works, but I can't customize it :(
    I can't change required XP for a levels.
    I can't add more levels.
    Players can't gain more XP after reaching max level.
    And that block break sound is really unnecessary.


    Edit:
    Maybe you can add an option to make this plugin to run command on specified levelup.
    for example player gets level 10 and it runs command /give <username> emerald
     
    Last edited by a moderator: Sep 27, 2018
  6. Offline

    DairyKing__

    I will look into not being able to customize the required XP. That is something I didnt test as I assumed it would just work. Same goes with the adding more levels, from what I can see in my code there should be no cap. Do you see a "max_level" entry in the config.yml? when you add a new level you need to change that entry as well so the plugin knows which level is the last level. And as far as gaining XP after reaching max level that is an easy fix, i purposefully made it that way thinking there wasn't much of a point in gaining more xp after reaching max.

    As with the recommendations I will definitely look into updating the plugin to add more options and customizability. I may eventually post it to the get plugins page. :)
     
    user_91250433 likes this.
  7. Offline

    user_91250433

    @DairyKing__
    Getting this error when player gets kicked,
    ERROR (open)
    ERROR]: Could not pass event PlayerQuitEvent to SimpleSkills v1.0 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader.execute(JavaPluginLoader.java:300) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.PlayerList.disconnect(PlayerList.java:387) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1320) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.PlayerConnection.disconnect(PlayerConnection.java:258) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.PlayerConnection.disconnect(PlayerConnection.java:229) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.CommandKick.a(SourceFile:37) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.CommandKick.b(SourceFile:26) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:132) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:72) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.CommandDispatcher.a(CommandDispatcher.java:188) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.craftbukkit.v1_13_R2.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:675) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchServerCommand(CraftServer.java:661) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.DedicatedServer.aU(DedicatedServer.java:417) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:377) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:792) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:695) [craftbukkit-1.13.1.jar:git-Bukkit-4228a56] at java.lang.Thread.run(Unknown Source) [?:1.8.0_181] Caused by: java.lang.NullPointerException at me.smiileyface.simpleskills.event.PlayerListener.onLeave(PlayerListener.java:22) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181] at org.bukkit.plugin.java.JavaPluginLoader.execute(JavaPluginLoader.java:298) ~[craftbukkit-1.13.1.jar:git-Bukkit-4228a56] ... 21 more

    Also Players are able to gain xp in safezones and claimed areas.
    I am using GriefPrevention plugin
    And i asked auther if anything can be done about this:
    [​IMG]
    If you can't fix this, no problem, they are not getting resources anyway :D
     
    Last edited by a moderator: Sep 29, 2018
  8. Offline

    user_91250433

    @DairyKing__
    I'm wondering what will happen if i simply edit .yml's in jar file?

    Edit:
    Wow, it actually worked. But something is wrong with XP :D
     
    Last edited by a moderator: Sep 27, 2018
  9. Offline

    user_91250433

  10. Offline

    user_91250433

    I still want this plugin.

    Maybe anyone else can make or edit his plugin?
    @DairyKing__ 's plugin would be fine. I feel like i asked too much :(
    Most important to me is to be able to customize level xp's, disable block break sound and allow players to gain xp after reaching max.
    plsss anyone?
     
    Last edited by a moderator: Sep 28, 2018
Thread Status:
Not open for further replies.

Share This Page