Skocz do zawartości

Cipski

Użytkownik
  • Zawartość

    9
  • Rejestracja

  • Ostatnia wizyta

O Cipski

  • Tytuł
    Świeżak

Ostatnie wizyty

95 wyświetleń profilu
  1. Cipski

    miejsce w ekwipunki

    options: time.start: 10 #in minutes time.vip: 8 #in hours command /kit [<text>]: trigger: if sender is player: if player has permission "kit.command": if argument 1 is set: if argument 1 isn't "start" or "vip": send "&7Poprawne uzycie: &c/kit <start/vip>" to player if argument 1 is "start": if player has permission "kit.start": if difference between {cd::kit.start::%player%} and now is smaller than {@time.start} minutes: send "&cBlad! &7Ten zestaw bedziesz mogl odebrac: &6%{cd::kit.start::%player%}%" to player else: loop all items in the player's inventory: add 1 to {_items} if {_items} is smaller than 33: set {cd::kit.start::%player%} to now send "&aOtrzymales zestaw: &7&oSTART&r&a!" to player add 1 stone pickaxe to player add 64 cooked porkchop to player add 64 cooked porkchop to player add 1 ender chest to player else: send "&cBlad! &7Brakuje miejsca w ekwipunku!" to player else: send "&cBrak uprawnien!" to player if argument 1 is "vip": if player has permission "kit.vip": if difference between {cd::kit.vip::%player%} and now is smaller than {@time.vip} hours: send "&cBlad! &7Ten zestaw bedziesz mogl odebrac: &6%{cd::kit.vip::%player%}%" to player else: loop all items in the player's inventory: add 1 to {_items} if {_items} is smaller than 27: set {cd::kit.vip::%player%} to now send "&aOtrzymales zestaw: &6&oVIP&r&a!" to player add 1 diamond sword of sharpness 5, fire aspect 2, unbreaking 3 to player add 2 enchanted golden apple to player add 10 golden apple to player add 1 diamond sword of knockback 2 to player add 3 ender pearl to player add 1 diamond pickaxe of efficiency 5, unbreaking 3, fortune 3 to player add 1 diamond helmet of protection 4, unbreaking 3 to player add 1 diamond chestplate of protection 4, unbreaking 3 to player add 1 diamond leggings of protection 4, unbreaking 3 to player add 1 diamond boots of protection 4, unbreaking 3 to player else: send "&cBlad! &7Brakuje miejsca w ekwipunku!" to player else: send "&cBrak uprawnien!" to player else: send "&7Poprawne uzycie: &c/kit <start/vip>" to player else: send "&cBrak uprawnien!" to player else: send "Ta komenda jest dla gracza!" to sender masz
  2. loop all items in the player's inventory: add 1 to {_items} if {_items} is smaller than 33: set {cd::kit.start::%player%} to now send "&aOtrzymales zestaw: &7&oSTART&r&a!" to player add 1 stone pickaxe to player add 64 cooked porkchop to player add 64 cooked porkchop to player add 1 ender chest to player else: send "&cBlad! &7Brakuje miejsca w ekwipunku!" to player gdy gracz nie ma zadnych itemow w ekwipunku wyskakuje mu blad naprawi ktos?
  3. Cipski

    Logowanie

    masz /unregister
  4. Cipski

    Logowanie

    Skrypt dodaje logowanie
  5. Cipski

    PEX I CHAT

    No dobra tylko gdy próbuje wyeksportować projekt mam błędy
  6. Cipski

    PEX I CHAT

    a jakie to są biblioteki?
  7. Cipski

    PEX I CHAT

    Niby spoko, jestem trochę zielony w pluginach i nie wiem co zrobić żeby te 2 linijki działały poprawnie: PermissionUser user = PermissionsEx.getUser(player); if(user.inGroup("HeadAdmin") { Cały kod: package me.lipex.core.listeners; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; public class ChatPrefixsListener implements Listener { @Deprecated @EventHandler public void onChat(AsyncPlayerChatEvent e) { Player player = e.getPlayer(); PermissionUser user = PermissionsEx.getUser(player); if (user.inGroup("HeadAdmin"){ e.setCancelled(true); Bukkit.broadcastMessage("§8[§[email protected]§8] §7" + player.getName() + ": §f" + String.join(" ")); if (user.inGroup("Admin"){ e.setCancelled(true); Bukkit.broadcastMessage("§8[§[email protected]§8] §7" + player.getName() + ": §f" + String.join(" ")); } } } }
  8. Witam napisze ktoś jak zrobić prefixy z pexa w pluginie?
×