-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajout du Météowand, qui permet de changer la météo du monde. #54
base: master
Are you sure you want to change the base?
Conversation
contestManager.setContestPlayerManager(contestPlayerManager); | ||
new MotdUtils(this); | ||
|
||
getServer().getPluginManager().registerEvents(new WeatherGUIListener(), this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci de le mettre dans ListenerManager stp
import java.util.HashMap; | ||
import java.util.UUID; | ||
|
||
public class WeatherGUI { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilise l'API de Xernas. Y'a un exemple dans features/contest/menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Donc je ne mets pas beaucoup de commentaire sur celui ci j'attends que tu fasses avec l'api de Xernas
private final Inventory inventory; | ||
|
||
private final HashMap<UUID, Long> playerCooldowns = new HashMap<>(); | ||
private static final long COOLDOWN_TIME = 30 * 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
met un commentaire pour dire sa valeur en heurs ou min
/** | ||
* Ajoute la recette pour fabriquer le Meteo Wand. | ||
*/ | ||
private void addMeteoWandRecipe() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne met pas tout dans le main stp met le dans MeteoWand et initialise le dans le constructeur MeteoWand
/** | ||
* Listener pour gérer les interactions dans l'inventaire "WeatherGUI" | ||
*/ | ||
public class WeatherGUIListener implements Listener { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilise l'API de xernas
Pour que votre Pull Request soit accepté, il vous faut :
Decrivez vos changements
Clairement et avec des screenshots si nécessaires
Ajout d'un item appelé le Météowand, qui permet de changer la météo du monde. Quand on fait un clic droit sur le bâton, un inventaire s'ouvre avec :