Inactive [GEN] NoExp V 0.3 - Few Exp, No lag, No Crash [1185]

Discussion in 'Inactive/Unsupported Plugins' started by MarkusE.s., Sep 18, 2011.

  1. Offline

    MarkusE.s.

    NoExp - Few Exp, No lag.:
    Version: v0.3
    Description: This Plugin sets the Exp. of the Player when they get Damage to Zero.
    Required: Permissions 3
    Features:
    • Disableing /Enabeling the Plugin with an command
    Permissions:
    • noexp.admin - For Disabeling/Enabeling the Plugin / Help
    Commands:
    • /noexp noexp - Enable / Disable the Plugin.
    • /noexp motd - Disable / Enable the Message on Join.
    • /noexp help - Displays the Commands.
    • /noexp exp - Displays your Experience.
    Download

    Changelog:
    Version 0.3
    • Changed Event.
    • If your get damage by Player or mob, your exp. will set to Zero
    • #Update to Build 1185
    Version 0.2
    • Added Commands.
    • The Plugin now resets the experience when the Player have 36 bubbles or more.
    Version 0.1
    • Release.
    Notice: This is my First Plugin, what i have Created and Released, i have created it, because yesterday an Player of my
    server with very very much Exp. died and the server Crased!

    Thanks to ArtemisTheSecond for help with the Playerlistener Error.
     
    TopGear93 likes this.
  2. Offline

    Switch0r

    Ok thanks i am testing this one

    It does not work on CB#1147

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  3. Offline

    MarkusE.s.

    Okay, if you have any wish, say it to me.
    Hm i will download the Build an test it.
     
  4. Offline

    Switch0r

    Ok our server just lagged to death with the exp orbs lag
     
  5. Offline

    MarkusE.s.

    Hm i dont know what you mean. on the Test server works all Fine and my Live Server does not lagg.
     
  6. Offline

    Lookatmego

    how exactly did u code this???
     
  7. Offline

    MarkusE.s.

    Thats Easy,
    You made your normal code an than add this to The event or commands you want:
    Code:
    player.setExperience(INT)
    if you want to read the Experience:
    Code:
    player.getExperience();
    #Plugin Updated to V 0.2
     
  8. Offline

    user_43347

    He's running this for onPlayerChat and onPlayerJoin (which is very odd):
    Code:
        if ((!NoExp.isPlugEn()) && (p.getExperience() == 36))
          p.setExperience(0);
    So all he is doing is every 36 orbs (wtf with that?) is resetting your score. He's not actually removing orbs, just resetting your score.

    @MarkusE.s. whats the point of this plugin? It's nothing but a few (concerning) lines of code?

    @Lookatmego this is the player listener:
    Code:
    package me.krank.noexp;
    
    import org.bukkit.ChatColor;
    import org.bukkit.Server;
    import org.bukkit.entity.Player;
    import org.bukkit.event.player.PlayerChatEvent;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.event.player.PlayerListener;
    import org.bukkit.plugin.Plugin;
    import org.bukkit.plugin.PluginManager;
    
    public class NoExpPlayerListener extends PlayerListener
    {
      private NoExp plugin;
    
      public void registerHooks()
      {
        Plugin permissions = this.plugin.getServer().getPluginManager().getPlugin("Permissions");
      }
    
      public NoExpPlayerListener(NoExp plugin)
      {
        this.plugin = plugin;
      }
      public void onPlayerChat(PlayerChatEvent e) {
        Player p = e.getPlayer();
        if ((!NoExp.isPlugEn()) && (p.getExperience() == 36))
          p.setExperience(0);
      }
    
      public void onPlayerJoin(PlayerJoinEvent e)
      {
        Player p = e.getPlayer();
        if (NoExp.ismotdEn()) {
          p.sendMessage(ChatColor.GOLD + "[NoExp] " + ChatColor.GREEN + "This server is running NoExp!");
        }
        if ((!NoExp.isPlugEn()) && (p.getExperience() == 36))
          p.setExperience(0);
      }
    }
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  9. Offline

    feildmaster

    Not to be a complete ass. No, actually. I'll be a complete ass.

    This is the most useless plugin ever. "Lets set everyone's exp to 0 on login, or when they CHAT."
    The source is completely ridiculous. You have 2 different places you try to create the config, and you try to create it in the most barbaric way ever.

    To everyone thinking this is a "NoExp Orb Plugin," why do you think that? This is to prevent people from gaining too much experience. (supposedly)

    Or more is not ==. or more is >=.
     
    r3Fuze likes this.
  10. Offline

    Lookatmego


    dude its alright he put effort into the plugin even if it is useless dont gotto be so harsh he may be working on new features for it or even still learning.

    i say nice effort
     
  11. Offline

    MarkusE.s.

  12. Offline

    feildmaster

  13. Offline

    dog.big

    not working with latest Bukkit, please fix it asap.
     
  14. Offline

    feildmaster

    Nice effort, but no. It's fine if he's still learning. It's a good idea he had. He had terrible code, and I gave the harshest criticism I could. I do enjoy the plugins people come up with, but not this.
     
    steaks4uce likes this.
  15. Offline

    MarkusE.s.

    @feilmaster: thats right. German Tv/ Websites XD
    I will change it. and Yes, I'm lerning.
     
  16. Offline

    dog.big

    could you please fix this asap? we have a lot of trouble with exps...
     
  17. Offline

    user_43347

    No, it's not illegal. Additionally, I agree with @feildmaster, the code is barbaric. And your "idea" is the worst way of controlling it, one Chat and Join? Wtf. Additionally, this is not what people have been asking for, they want one that stops orb drops, not something that clears exp in the wierdest ways.

    Btw, welcome to Bukkit. Have a nice day!
     
  18. Offline

    MarkusE.s.

    @steak4uce:
    1. Thanks
    and so i know, you cant stop the drop of orb at the Moment.
    @dog.big:
    On my server it works with build 1149.

    The Exp. will now Remove correctly.
    and I have just Released the plugin, since my knowledge there are no more similar.
     
  19. Offline

    dog.big

    2011-09-18 16:33:21 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'noexp' in plugin NoExp v0.02 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:755) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:720) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:713) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at me.krank.noexp.NoExp.onCommand(NoExp.java:104) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39) ... 12 more

    also, yes it sometimes set experience to zero, but when you die, the orbs are back!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  20. Offline

    MarkusE.s.

    Hm, that comes if you type "/noexp" only, without arguments?
    €: i test it with teh dead
     
  21. Offline

    dog.big

    yes, but after some time..
    also still have orbs after dead when /noxexp exp shows zero :(
     
  22. Offline

    MarkusE.s.

    Are you sure, what you dont run into orbs?
    I can add, that the orbs which the player have will be set to Zero before they die.
    I think that is better as that the Exp will set to zero on Chat and Join. I try it.
     
  23. Offline

    dog.big

    the main issue, that your plugin shows, that I have zero experience, but when I get killed, the orbs are still dropped :(
     
  24. Offline

    MarkusE.s.

    Yes, i work on it, that if the Player died the have nor orbs.
    Than i can delet the Player Chat and Join event.
     
  25. Offline

    dog.big

    ok, thanks for coding :). I will test it when it got released.
     
  26. Offline

    feildmaster

    Glad you figured that out. Now you just have to figure out how to do config correctly.
     
  27. Offline

    MarkusE.s.

    I have Update the Plugin, now it Use the ENTITY_DAMAGE Event.
    On ym test, i ahve Experience, but i dont drop. :O
    Please Test it.
     
  28. Offline

    audial

    Using 1149

    When I type "/noexp noexp"

    11:58:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'noex
    p' in plugin NoExp v0.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    53)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:755)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:720)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:713)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    ler
    at me.krank.noexp.NoExp.onCommand(NoExp.java:101)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 14 more
    >
     
  29. Offline

    RazorFlint

    Jeb fixed the exp drop, just dropping the bomb here :S
     

Share This Page