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

Szukam skryptu/pluginy pokazującego przedmioty na gildie w GUI.


Rekomendowane odpowiedzi

Opublikowano

Plugin MyCommand

http://dev.bukkit.org/bukkit-plugins/mycommand/

config.yml z itemami w GUI:

 

 

#-----------------------------------------------------------------------------------------------------------#

#         MyCommand Commands config file (last update v5.1.2)       #
#                           #
#  BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example    #
#                           #
# How to make a command : (See an example command below)             #
#  For first,put you command number on first line               #
#  Now put your command name on "command:" line. Don't forget the '/' before you command.    #
#  So,select your command type from a predefined list putting it after "type" line      #
# COMMAND TYPE LIST :                      #
#  TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT   #
#  ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUNCOMMAND_PERM_BROADCAST_TEXT , SPOUT_TEXT  #
#       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION  #
#  BAR_API_TEXT , BAR_API_BROADCAST_TEXT , RUN_CONSOLE_RANDOM , CALL_URL        #
#                           #
# Now,if you command it's "TEXT" type,you can put multiple line of text below text list     #
# Same thing,if your command it's "RUNCOMMAND" type,but put you commands below runcmd list.    #
# For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list     #
# Set delay time with delaytimer: 5 (5 = seconds) | Use the dot . for decimal cost Example = cost : 5.5  #
# You can customize your permission node by placing "permission-node:" field in a command     #
# Also,you can change the permission error message with "permission-error:"        #
#   Custom error-message for invalid args ,put "error-message:" line in a command.       #
#   You can use itemcost : 'ID:AMOUNT' for set a cost with items.            #
#   Register REAL commands putting "register: true" below the command.              #
#   With register commands you can use the "tab_completer: - Hi - Hello!"          #
#-----------------------------------------------------------------------------------------------------------#

'itemy':
  command: /itemy
  type: ICON_MENU
  iconmenu_title: '&6Itemy potrzebne na gildie'
  iconmenu_size: 35
  iconmenu_commands:
  - '0:BEDROCK:0:/itemy:&2'
  - '1:BEDROCK:0:/itemy:&2'
  - '2:BEDROCK:0:/itemy:&2'
  - '3:BEDROCK:0:/itemy:&2'
  - '4:BEDROCK:0:/itemy:&2'
  - '5:BEDROCK:0:/itemy:&2'
  - '6:BEDROCK:0:/itemy:&2'
  - '7:BEDROCK:0:/itemy:&2'
  - '8:BEDROCK:0:/itemy:&2'
  - '9:DIAMOND:32:/itemy:&2Diamenty &c32 sztuki'
  - '10:EMERALD:32:/itemy:&2Emeraldy &c32 sztuki'
  - '11:IRON_INGOT:32:/itemy:&2Sztabki zelaza &c32 sztuki'
  - '12:GOLD_INGOT:32:/itemy:&2Sztabki zlota &c32 sztuki'
  - '13:COAL:32:/itemy:&2Wegiel &c32 sztuki'
  - '14:ENDER_PEARL:32:/itemy:&2Ender Perly &c16 sztuk'
  - '15:SAND:32:/itemy:&2Piasek &c32 sztuki'
  - '16:GOLDEN_APPLE:0:/itemy:&2Zlote jabka &c32 sztuki'
  - '17:WOOD:0:/itemy:&2Drewno &c32 sztuki'
  - '18:BEDROCK:0:/itemy:&2'
  - '19:BEDROCK:0:/itemy:&2'
  - '20:BEDROCK:0:/itemy:&2'
  - '21:BEDROCK:0:/itemy:&2'
  - '22:BEDROCK:0:/itemy:&2'
  - '23:BEDROCK:0:/itemy:&2'
  - '24:BEDROCK:0:/itemy:&2'
  - '25:BEDROCK:0:/itemy:&2'
  - '26:BEDROCK:0:/itemy:&2'
  - '27:DIAMOND:32:/itemy:&6&lVIP &2Diamenty &c20 sztuki'
  - '28:EMERALD:32:/itemy:&6&lVIP &2Emeraldy &c20 sztuki'
  - '29:IRON_INGOT:32:/itemy:&6&lVIP &2Sztabki zelaza &c20 sztuki'
  - '30:GOLD_INGOT:32:/itemy:&6&lVIP &2Sztabki zlota &c20 sztuki'
  - '31:COAL:32:/itemy:&6&lVIP &2Wegiel &c20 sztuki'
  - '32:ENDER_PEARL:32:/itemy:&6&lVIP &2Ender Perly &c10 sztuk'
  - '33:SAND:32:/itemy:&6&lVIP &2Piasek &c20 sztuki'
  - '34:GOLDEN_APPLE:0:/itemy:&6&lVIP &2Zlote jabka &c20 sztuki'
  - '35:WOOD:0:/itemy:&6&lVIP &2Drewno &c20 sztuki'
  - '36:BEDROCK:0:/itemy:&2'
  - '37:BEDROCK:0:/itemy:&2'
  - '38:BEDROCK:0:/itemy:&2'
  - '39:BEDROCK:0:/itemy:&2'
  - '40:BEDROCK:0:/itemy:&2'
  - '41:BEDROCK:0:/itemy:&2'
  - '42:BEDROCK:0:/itemy:&2'
  - '43:BEDROCK:0:/itemy:&2'
  - '44:BEDROCK:0:/itemy:&2'
  permission-required: true
  permission-node: gui.itemy
  permission-error: "&a$player! , &2Nie masz uprawnien do uzywania tej komendy."

 

Opublikowano

Wymagany skQuery, w tej pierwszej sekcji ustalasz itemy, jeżeli vip ma permissie "easyhard.guilditems" automatycznie pokazuje połowę mniej itemków. ;)

command /itemy:
	trigger:
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#

		set {itemy_0} to GOLDEN APPLE ITEM
		set {itemy_1} to ENDER PEARL
		set {itemy_2} to TNT
		set {itemy_3} to DIAMOND BLOCK
		set {itemy_4} to EMERALD BLOCK
		set {itemy_5} to ANVIL
		set {itemy_6} to BOOKSHELF
		set {itemy_7} to SLIME
		set {itemy_8} to QUARTZ ITEM

		#----------------------------------------------------------------#
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#

		set {itemy_0.number.%player%} to number of {itemy_0} in the player's inventory
		set {itemy_1.number.%player%} to number of {itemy_1} in the player's inventory
		set {itemy_2.number.%player%} to number of {itemy_2} in the player's inventory
		set {itemy_3.number.%player%} to number of {itemy_3} in the player's inventory
		set {itemy_4.number.%player%} to number of {itemy_4} in the player's inventory
		set {itemy_5.number.%player%} to number of {itemy_5} in the player's inventory
		set {itemy_6.number.%player%} to number of {itemy_6} in the player's inventory
		set {itemy_7.number.%player%} to number of {itemy_7} in the player's inventory
		set {itemy_8.number.%player%} to number of {itemy_8} in the player's inventory
		
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#

		player doesn't have the permission "easyhard.guilditems":
			#----------------------------------------#
			if {itemy_0.number.%player%} >= 64:
				set {itemy_0.color.%player%} to "&a&l"
			else:
				set {itemy_0.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_1.number.%player%} >= 16:
				set {itemy_1.color.%player%} to "&a&l"
			else:
				set {itemy_1.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_2.number.%player%} >= 64:
				set {itemy_2.color.%player%} to "&a&l"
			else:
				set {itemy_2.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_3.number.%player%} >= 64:
				set {itemy_3.color.%player%} to "&a&l"
			else:
				set {itemy_3.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_4.number.%player%} >= 64:
				set {itemy_4.color.%player%} to "&a&l"
			else:
				set {itemy_4.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_5.number.%player%} >= 64:
				set {itemy_5.color.%player%} to "&a&l"
			else:
				set {itemy_5.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_6.number.%player%} >= 64:
				set {itemy_6.color.%player%} to "&a&l"
			else:
				set {itemy_6.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_7.number.%player%} >= 64:
				set {itemy_7.color.%player%} to "&a&l"
			else:
				set {itemy_7.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_8.number.%player%} >= 64:
				set {itemy_8.color.%player%} to "&a&l"
			else:
				set {itemy_8.color.%player%} to "&c&l"

		#----------------------------------------------------------------#
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#

		player has the permission "easyhard.guilditems":
			#----------------------------------------#
			if {itemy_0.number.%player%} >= 32:
				set {itemy_0.color.%player%} to "&a&l"
			else:
				set {itemy_0.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_1.number.%player%} >= 8:
				set {itemy_1.color.%player%} to "&a&l"
			else:
				set {itemy_1.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_2.number.%player%} >= 32:
				set {itemy_2.color.%player%} to "&a&l"
			else:
				set {itemy_2.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_3.number.%player%} >= 32:
				set {itemy_3.color.%player%} to "&a&l"
			else:
				set {itemy_3.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_4.number.%player%} >= 32:
				set {itemy_4.color.%player%} to "&a&l"
			else:
				set {itemy_4.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_5.number.%player%} >= 32:
				set {itemy_5.color.%player%} to "&a&l"
			else:
				set {itemy_5.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_6.number.%player%} >= 32:
				set {itemy_6.color.%player%} to "&a&l"
			else:
				set {itemy_6.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_7.number.%player%} >= 32:
				set {itemy_7.color.%player%} to "&a&l"
			else:
				set {itemy_7.color.%player%} to "&c&l"
			#----------------------------------------#
			if {itemy_8.number.%player%} >= 32:
				set {itemy_8.color.%player%} to "&a&l"
			else:
				set {itemy_8.color.%player%} to "&c&l"

		#----------------------------------------------------------------#
		#----------------------------------------------------------------#
		#----------------------------------------------------------------#

		player doesn't have the permission "easyhard.guilditems":
			open chest with 2 rows named "&C&lITEMY NA GILDIE:" to player
			format slot 0 of player with 1 of {itemy_0} named "%{itemy_0.color.%player%}%%{itemy_0.number.%player%}%/64" to close
			format slot 1 of player with 1 of {itemy_1} named "%{itemy_1.color.%player%}%%{itemy_1.number.%player%}%/16" to close
			format slot 2 of player with 1 of {itemy_2} named "%{itemy_2.color.%player%}%%{itemy_2.number.%player%}%/64" to close
			format slot 3 of player with 1 of {itemy_3} named "%{itemy_3.color.%player%}%%{itemy_3.number.%player%}%/64" to close
			format slot 4 of player with 1 of {itemy_4} named "%{itemy_4.color.%player%}%%{itemy_4.number.%player%}%/64" to close
			format slot 5 of player with 1 of {itemy_5} named "%{itemy_5.color.%player%}%%{itemy_5.number.%player%}%/64" to close
			format slot 6 of player with 1 of {itemy_6} named "%{itemy_6.color.%player%}%%{itemy_6.number.%player%}%/64" to close
			format slot 7 of player with 1 of {itemy_7} named "%{itemy_7.color.%player%}%%{itemy_7.number.%player%}%/64" to close
			format slot 8 of player with 1 of {itemy_8} named "%{itemy_8.color.%player%}%%{itemy_8.number.%player%}%/64" to close
			format slot 13 of player with 1 of NETHER STAR named "&e&lRANGI VIP/SVIP MAJA POLOWE ITEMOW NA GILDIE" with lore "&c&lZAKUP RANGI VIP/SVIP &d&lhttp://easyhard.net/||&a&lINFORMACJE NA TEMAT VIP - &b&l/vip||&a&lINFORMACJE NA TEMAT SVIP - &b&l/svip" to close
		player has the permission "easyhard.guilditems":
			open chest with 1 rows named "&C&lITEMY NA GILDIE:" to player
			format slot 0 of player with 1 of {itemy_0} named "%{itemy_0.color.%player%}%%{itemy_0.number.%player%}%/32" to close
			format slot 1 of player with 1 of {itemy_1} named "%{itemy_1.color.%player%}%%{itemy_1.number.%player%}%/8" to close
			format slot 2 of player with 1 of {itemy_2} named "%{itemy_2.color.%player%}%%{itemy_2.number.%player%}%/32" to close
			format slot 3 of player with 1 of {itemy_3} named "%{itemy_3.color.%player%}%%{itemy_3.number.%player%}%/32" to close
			format slot 4 of player with 1 of {itemy_4} named "%{itemy_4.color.%player%}%%{itemy_4.number.%player%}%/32" to close
			format slot 5 of player with 1 of {itemy_5} named "%{itemy_5.color.%player%}%%{itemy_5.number.%player%}%/32" to close
			format slot 6 of player with 1 of {itemy_6} named "%{itemy_6.color.%player%}%%{itemy_6.number.%player%}%/32" to close
			format slot 7 of player with 1 of {itemy_7} named "%{itemy_7.color.%player%}%%{itemy_7.number.%player%}%/32" to close
			format slot 8 of player with 1 of {itemy_8} named "%{itemy_8.color.%player%}%%{itemy_8.number.%player%}%/32" to close

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...