I´m creating a plugin by myself and I need to know when a player changes his level (similar to the PlayerLevelChangeEvent in bukkit).
Thanks for your atention.
It is ChangeEntityExperienceEvent
You can see how Minecraft works out levels from Experience – Official Minecraft Wiki
Edit:
Excuse me. This is it sorry
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
This file has been truncated. show original
Thank you so much, I was really exhausted looking for information, there isn´t so much about this.
Take a look at the java docs or github for events. I belive on the Sponge Docs it says ‘these are the events’ and just sends you to the javadocs
JBYoshi
September 11, 2018, 3:08pm
5
I don’t think that event is working right now. See https://github.com/SpongePowered/SpongeCommon/pull/1893 for status updates.
SpongePowered:stable-7
← SpongePowered:xp-events
opened 02:38AM - 29 Apr 18 UTC