No XP Plugin, disable vanilla xp earning

Discussion in 'Archived: Plugin Requests' started by Mr_Urfaneck, Nov 14, 2013.

  1. Offline

    Mr_Urfaneck

    Hello,

    After much research on various forums and websites, I finally decided to post my request plugin. I am looking for something very simple, and I think that there is not a huge job to provide for this plugin. I would busy myself, but I'm too bad ^ ^!

    So here I am trying to disable xp on my server. but only different way to earn xp in vanilla (kill mobs, sin, nourish animals, mining, etc.) because on the other hand I want to keep the bar xp and enchantment systems.

    Why such a request? Because I use other plugins that give the xp to players based on certain events. Basically, I want to change the way to earn xp. But it is not my query here. I just want the players are no longer able to earn xp as before. Everything, absolutely every way to earn xp to be disabled.

    =================
    Thanks a lot to Mannil for his plugin
    Know Issue (11.16.2013):
    - Xp drop on breeding animals. I think Bukkit not yet integrated into the API an event like EventBreedingEntity that would stop the exp. I suggest you then this plugin (which works in 1.6.4 R2) http://dev.bukkit.org/bukkit-plugins/breedinglimiter/

    =================

    original post:

    Plugin category: MECHANICS

    Suggested name: DisableXp, NoXp, etc.

    What I want: Disable vanilla xp gains. And if possible remove the xp orbs.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin, just drop in the plugins folder and let's go.

    When I'd like it by: One month to do that ?! I'm not joking, I'm in no hurry :)


    This is for a french futur big server.. We want a new xp mechanics with a skills system for our RP server. We want this plugin before opening the server, the eve of the Christmas holidays in France. (December 20). Thx a lot if someone want to try !!!

    PS: Sorry for my very bad english... thx to google trad ^^!
     
    manniL likes this.
  2. Offline

    Mr_Urfaneck

  3. Offline

    AndyMcB1

    manniL likes this.
  4. AndyMcB1 likes this.
  5. Offline

    Mr_Urfaneck

    Hi,

    First, Thx a lot for your work (so fast :D) ! But, I 'm testing right now your plugin and there is this amazing and boring exp drop when feed animals... Can you fix this ? Thx again :)
     
  6. Offline

    AndyMcB1

  7. Offline

    HrTsDi

    You can add this :
    Code:
    @EventHandler
        public void onExpChange(PlayerExpChangeEvent e) {
            e.setAmount(0);
      }
    the Orb will be spawn but give no exp

    I have try this :
    Code:
    //@EventHandler
        //test
        /*public void onSpawn(CreatureSpawnEvent  e){
            e.setCancelled(true);   
            if(e.getSpawnReason().equals(SpawnReason.BREEDING)){
                e.setCancelled(true);
            }
        }*/
    but it's not working....

    manniL if you have another idea it will be better ;)
     
  8. It's because you cancle the whole event ^^

    I've developed the plugin already, so check my source:
    https://github.com/manniL/NoEXP
     
  9. Offline

    AndyMcB1

    It's not working because the whole thing is commented out.
     
  10. AndyMcB1 likes this.
  11. Offline

    HrTsDi

    manniL : oups i see nowi can't make this, you have right :p
    I have check your source (thanks ;) ) and make a test, but as Mr_Urfaneck say, you don't manage xp with BREEDING animals, so i have try to make this code, but as you can see, i don't have any idea to not generate orb when animals breeding, any idea ?

    EDIT : I see you work on it, GL :)
     
  12. HrTsDi well, there is no breeding event/api at the moment, so I need to find a workaround
     
  13. Skript has a "on experience spawn:" event
    You can just use the "cancel event" effect to disable XP. Simple as that :D
     
  14. Offline

    Mr_Urfaneck

Share This Page