Résolu Erreur en effectuant une commande

Typheonn

Aventurier
18 Novembre 2017
3
2
4
40
Bonjour.

J'essaie actuellement de mettre un pluggin sur mon serveur mais ils y'a quelque erreurs.

Il s'agit du pluggin Lottery.

Quand je fais /lot buy 1 , cela m'affiche : "An internal error occured while attempting to perform this command"

Et voici les logs :
Code:
[17:06:04] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'lot' in plugin Lottery v0.9.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1354) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_151]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_151]
    at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at net.erbros.lottery.LotteryGame.broadcastMessage(LotteryGame.java:472) ~[?:?]
    at net.erbros.lottery.MainCommandExecutor.commandBuy(MainCommandExecutor.java:266) ~[?:?]
    at net.erbros.lottery.MainCommandExecutor.onCommand(MainCommandExecutor.java:55) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
    ... 15 more
[17:06:19] [Server thread/WARN]: [Lottery] Task #300 for Lottery v0.9.4 generated an exception
java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at net.erbros.lottery.LotteryGame.broadcastMessage(LotteryGame.java:472) ~[?:?]
    at net.erbros.lottery.LotteryGame.getWinner(LotteryGame.java:402) ~[?:?]
    at net.erbros.lottery.Lottery.lotteryDraw(Lottery.java:164) ~[?:?]
    at net.erbros.lottery.LotteryDraw$1.run(LotteryDraw.java:29) ~[?:?]
    at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:738) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]




Quelqu'un pourrait-il m'aider s'il vous plaît ?
 
On dirait une erreur dans le code du plugin essaye une autre version du plugin ou alors une erreur dans la configuration je ne saurais trop te conseiller personnellement...

En revanche j'ai signaler ton post car tu ne te trouves pas dans la meilleure des sections pour rechercher de l'aide ^^"

Cordialement,
PainZ / Nallraen
 
Bonsoir !

"Null" signifie "vide" ou "rien" en très gros. Cela vient quasi à coup sur du code du plugin. En effet tests une autre version et envoi ta configuration s'il te plait ;)

AlexFatta
 
  • J'aime
Reactions: NallraenDev
Bonjour.

Désolé, de l'avoir posté au mauvais endroit.

Voici ma configuration :
Code:
config:
  useiConomy: true
  cost: 5
  material: 266
  hours: 2
  broadcastBuying: true
  broadcastBuyingTime: 120
  welcomeMessage: true
  clearExtraInPot: true
  netPayout: 100
  taxTarget: ''
  maxTicketsEachUser: 5
  numberOfTicketsAvailable: 0
  buyingExtend:
    enabled: true
    secondsRemaining: 30
    extendBase: 15
    extendMultiplier: 1.5
  nextexec: 1511021180195
  extraInPot: 0
  jackpot: 0
  debug: false
message:
  prefix: '&6[LOTTERY]&r'
  Welcome: '%prefix% &fDraw in: &c%drawLong%'
  ErrorPlugin: '%prefix% Sorry, we haven''t found a money plugin yet..'
  ErrorAccess: '%prefix% You don''t have access to that command.'
  ErrorCommand: '%prefix% Hey, I don''t recognize that command!'
  ErrorConsole: '%prefix% You''re the console, I can''t sell you tickets.'
  ErrorConsole2: '%prefix% You''re the console, you don''t have an inventory.'
  ErrorConsole3: '%prefix% You''re the console, you can''t change that.'
  ErrorNoAvailable: '%prefix% There are no more tickets available'
  ErrorAtMax: '%prefix% You already have the maximum of %0% %1% already.'
  ErrorNotAfford: '%prefix% You can''t afford a ticket'
  ErrorNumber: '%prefix% Provide a number greater than zero (decimals accepted)'
  ErrorClaim: '%prefix% You did not have anything unclaimed.'
  TicketCommand: '%prefix% Buy a ticket for &c%cost% &rwith &c/lottery buy'
  PotAmount: '%prefix% There is currently &a%pot% &rin the pot.'
  YourTickets: '%prefix% You have &c%0% &r%1%'
  TicketRemaining: '%prefix% There is &c%0% &r%1% left.'
  CommandHelp: '%prefix% &c/lottery help&r for other commands'
  LastWinner: '%prefix% Last winner: %0% %1%'
  CheckClaim: '%prefix% Check if you have won with &c/lottery claim'
  BoughtTicket: '%prefix% You got &c%0% &r%1% for &c%2%'
  BoughtTickets: '%prefix% You now have &c%0% &r%1%'
  BoughtAnnounceDraw: '%prefix% &r%0% &rjust bought %1% %2%! Draw in %3%'
  BoughtAnnounce: '%prefix% &r%0% &rjust bought %1% %2%!'
  DrawIn: '%prefix% Draw in: &c%0%'
  DrawNow: '%prefix% Lottery will be drawn at once.'
  DrawSoon: Soon
  DrawSoonLong: Draw will occur soon!
  PlayerClaim: '%prefix% You just claimed %0%'
  MessagesEnabled: '%prefix% You will now receive Lottery broadcast messages.'
  MessagesDisabled: '%prefix% You will no longer receive Lottery broadcast messages.'
  NoWinnerTickets: '%prefix% No tickets sold this round. Thats a shame.'
  NoWinnerRollover: '%prefix% No winner, we have a rollover! &a%0% &rwent to jackpot!'
  WinnerCongrat: '%prefix% Congratulations go to %0% &rfor winning &c%1%&r with &c%2%&r
    %3%'
  WinnerCongratClaim: '%prefix% Use &c/lottery claim &rto claim the winnings.'
  WinnerSummary: '%prefix% There was a total of %0% %1% buying %2% %3%'
  AddToPot: '%prefix% Added &a%0% &rto pot. Extra total is &a%1%'
  ConfigCost: '%prefix% Cost changed to &c%0%'
  ConfigHours: '%prefix% Hours changed to &c%0%'
  ConfigMax: '%prefix% Max amount of tickets changed to &c%0%'
  ConfigReload: '%prefix% Config reloaded'
  HelpPot: '%prefix% /lottery addtopot <number>'
  Help: '%prefix% Help commands%newline%%prefix% &c/lottery&r : Basic lottery info.%newline%%prefix%
    &c/lottery buy <n>&r : Buy ticket(s). %newline%%prefix% &c/lottery claim&r : Claim
    outstanding wins.%newline%%prefix% &c/lottery winners&r : Check last winners.'
  HelpAdmin: '%prefix% &1/lottery draw&r : Draw lottery.%newline%%prefix% &1/lottery
    addtopot&r : Add number to pot. %newline%%prefix% &1/lottery config&r : Edit the
    config.'
  HelpConfig: '%prefix% Edit config commands%newline%%prefix% &c/lottery config cost
    <i>%newline%%prefix% &c/lottery config hours <i> %newline%%prefix% &c/lottery
    config maxTicketsEachUser <i>%newline%%prefix% &c/lottery config reload'
  ticket: ticket
  tickets: tickets
  player: player
  players: players
  day: days
  hour: hour
  hours: hours
  minute: minute
  minutes: minutes
  second: second
  seconds: seconds
  TimeRemaining: '%prefix% There is &c%0% &r%1% left.'
  Ticket: ticket
  Tickets: tickets
  days: days

Merci pour vos réponses, je vais tester avec une version plus récente.