Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem z chestcommands


Lukasz_C

Rekomendowane odpowiedzi

Opublikowano

Napisałem menu do chestcommands, ale gdy robie reload wyświetla się taki błąd:

 

1) Error while initializing config file "menu/rangi.yml": I/O exception while reading file. --------[ Exception details ]-------- java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:281) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at java.nio.file.Files.readAllLines(Files.java:3205) at java.nio.file.Files.readAllLines(Files.java:3242) at me.filoghost.chestcommands.fcommons.config.ConfigLoader.load(ConfigLoader.java:53) at me.filoghost.chestcommands.config.ConfigManager.tryLoadMenus(ConfigManager.java:111) at me.filoghost.chestcommands.ChestCommands.load(ChestCommands.java:177) at me.filoghost.chestcommands.command.CommandHandler.reload(CommandHandler.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at me.filoghost.chestcommands.fcommons.command.multi.MethodReflectionSubCommand.execute(MethodReflectionSubCommand.java:94) at me.filoghost.chestcommands.fcommons.command.multi.MultiCommandManager.execute(MultiCommandManager.java:113) at me.filoghost.chestcommands.fcommons.command.CommandManager.onCommand(CommandManager.java:80) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:747) at net.minecraft.server.v1_16_R1.PlayerConnection.handleCommand(PlayerConnection.java:1702) at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1545) at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(SourceFile:144) at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(SourceFile:118) at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:941) at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:934) at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeAll(SourceFile:103) at net.minecraft.server.v1_16_R1.MinecraftServer.sleepForTick(MinecraftServer.java:917) at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:850) at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) at java.lang.Thread.run(Thread.java:748) -------------------------------------

 

Oto menu, które napisałem:

 

######################
#+                  +#
#   MENU SETTINGS    #
#+                  +#
######################

menu-settings:

  # REQUIRED
  # Appears as the title of the menu.
  name: '&7&lRangi'

  # REQUIRED
  # The number of rows in the menu.
  rows: 3

  # OPTIONAL
  # Set which commands a player can execute to open the menu.
  commands:
  - 'rangi'

  # OPTIONAL
  # How frequently the menu will be refreshed, in seconds.
  # Useful if you have placeholders in icon descriptions.
  auto-refresh: 5

  # OPTIONAL
  # These actions will be executed when the menu is opened.
  # Supports all the icon action types.
  open-actions:
  - 'tell:'

  # OPTIONAL
  # The menu will open only when right-clicking with a compass.
  open-with-item:
    material: compass
    left-click: false
    right-click: false


######################
#+                  +#
#       ICONS        #
#+                  +#
######################


vip:
  MATERIAL: gold_ingot
  POSITION-X: 3
  POSITION-Y: 2
  NAME: '&k!! &r&6VIP &r&k!!'
  LORE:
    - '&8»&8&m-----&8» &eVIP &8«&8&M-----&8«'
    - ''
    - '&8» &7Prefix VIP'
    - '&8» &7Ranga VIP na dc'
    - '&8» &7MoĹĽliwość pisania na kolorowo'
    - '&8» &7MoĹĽliwość stworzenia swojego VIPwarpu &8(&6/vipset&8)'
    - '&8» &7Dostęp do strefy VIP'
    - '&8» &7Unikalne komendy: &a/near /heal /compass /glowa /hat'
    - '&8» &7MoĹĽliwość posiadania aĹĽ 5 home &8(&a/sethome&8)'
    - '&8» &7Kit &6VIP &8'
    - ''
    - '&8» &7Ranga &6VIP &7kosztuje 5.00 zĹ‚.'
    - ''
    - '&8»&8&m-----&8» &eVIP &8«&8&M-----&8«'
  ENCHANTMENTS:
    - durability, 1
  KEEP-OPEN: true

svip:
  MATERIAL: diamond
  POSITION-X: 7
  POSITION-Y: 2
  NAME: '&k!! &r&6SVIP &r&k!!'
  LORE:
    - '&8»&8&m-----&8» &eSVIP &8«&8&M-----&8«'
    - ''
    - '&8» &7Prefix SVIP'
    - '&8» &7Ranga SVIP na dc'
    - '&8» &7MoĹĽliwość pisania na kolorowo'
    - '&8» &7MoĹĽliwość stworzenia swojego VIPwarpu &8(&6/vipset&8)'
    - '&8» &7Dostęp do strefy VIP'
    - '&8» &7Unikalne komendy: &a/near /heal /compass /plecak /glowa /hat /jump /break /back &8(po Ĺ›mierci&8)'
    - '&8» &7MoĹĽliwość posiadania aĹĽ 10 home &8(&a/sethome&8)'
    - '&8» &7Kit &6VIP, SVIP &8'
    - ''
    - '&8» &7Ranga &6SVIP &7kosztuje 7.00 zĹ‚.'
    - ''
    - '&8»&8&m-----&8» &eSVIP &8«&8&M-----&8«'
  ENCHANTMENTS:
    - durability, 1
 

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...