-
Notifications
You must be signed in to change notification settings - Fork 51
Evènement pour Halloween sur OpenMC #479
Conversation
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.
|
Tu as laissé des debugs |
iambibi
left a comment
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.
Attention ma review est plutot vide, je conseille qu'un autre developpeur dise ce qu'il en pense
|
|
||
| } else { | ||
|
|
||
| player.sendMessage(ChatColor.RED + "Aucun évenement en cours revenez plus tard"); |
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.
Mets comme ça tes messages,
MessageManager.sendMessageType(getOwner(), "Message", Prefix.CONTEST, MessageType.SUCCESS, true);
Ton prefix est def dans fr.communaywen.core.utils.constant.Prefix
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.
ok je vais voir ça
| private final int enchant_level; | ||
|
|
||
|
|
||
| WeeklyItemType(String itemType, String itemName, String displayName, String material, int data, int cost, String money, String moneyName,String lore, int enchant_level){ |
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.
Essaie d'avoir un ItemStack + cost + money + moneyName + namespace item adder
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.
heu pour les livres enchantés pas sûr que ça va marcher
|
|
||
| } | ||
|
|
||
| private void GiveItems(Player player, ItemStack item){ |
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.
GiveItems => giveItems
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.
ok.
|
|
|
||
| String savedWeeklyItem = getConfig().getString("weekly-item", WeeklyItemType.LUCKY_BLOCK.name()); | ||
| WeeklyItemType weeklyItemType = WeeklyItemType.valueOf(savedWeeklyItem); | ||
| Bukkit.getConsoleSender().sendMessage("Le WeeklyItemType a été charger : " + getConfig().getString("weekly-item")); |
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.
Euh tu as rien ajouter dans le config.yml?
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.
Si ....
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.
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.
Non.
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.
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.
Montre moi que j'ai tord.
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.
mais je viens de te montrer que c'est sauvegarder sur le config.yml du plugin je peux rien faire d'autre pour te le montrer.
edit : la sauvegarde s'ajoute dans le config.yml au premier lancement de cleui_ci
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.
Si tu le dis on verra sur le serveur ptdr
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.
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.
ba je sais pas parce que sur mon ide sa apparait pas mais quand j'ouvre le config.yml seul il est présent
Mince je pensais les avoir tous retirer |
|
j'allais oublier pour la dim faut remplacer le fichier créer par celui-ci sinon le manoir ba il existe pas |
|
ducoup est-ce que c'est un code propre pour être ajouter au serveur ou pas ? |
|
|
||
| this.RewardType = 1; | ||
| Items = Material.DIAMOND; | ||
| Items = Material.EMERALD; |
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 de majuscule au début des noms de variables.
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.
Items => items
| @EventHandler | ||
| public void onEntityKill(EntityDeathEvent event) { | ||
|
|
||
| EnumSet<EntityType> MansionEntities = EnumSet.of(EntityType.ZOMBIE_VILLAGER, EntityType.SKELETON, EntityType.SPIDER, EntityType.CAVE_SPIDER, EntityType.WITHER_SKELETON, EntityType.VINDICATOR, EntityType.WITCH); |
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.
MansionEntities => mansionEntities
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.
normalement c'est corrigé
|







Avez vous lu le Code de Conduite?: oui
Votre code se compile t-il en local ?: oui
Avez-vous supprimez les imports inutilisés ?: oui ( normalement )
Decrivez vos changements
Clairement et avec des screenshots si nécessaires
J'ai coder un évènement pour halloween rajoutant : une dimension temporaire ou il y a un manoir / une lootbox pour halloween / des "hats" ( chapeaux ) / des bonbons / un shop hebdomadaire et un shop de bonbon accessible par une commande / ( pour les modos une commande pour désactiver l'événement au cas où) / des drops customs pour les mobs dans le manoir / une nouvelle quête hebdomadaire .