Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #===================================================================#
- # AdminPanelMenuCh© #
- # V1.1 #
- # By Choco3224 #
- # ★--------------★ #
- # Dependencia #
- # Skript #
- # Essentias #
- #===================================================================#
- #----Opciones----
- #-Idioma-
- esp: true
- ing: false
- #No activar los dos a la vez
- #Pon 'true' para activar el idioma 'false' para desactivarlo
- #-Actualizar-
- updater: true
- Autoupdate: true
- #True por defecto - recomiendo encenderlo porque podría actualizar periódicamente
- #Pon 'true' o 'false' para activar o desactivar la auto actualizacion del skript.
- #=====================================================================================================
- #-----No modificar-----
- #Sonidos
- Sound0: AMBIENCE_CAVE
- Sound1: NOTE_PLING
- Sound2: AMBIENCE_THUNDER
- Sound3: EXPLODE
- Sound4: NOTE_BASS
- Sound5: ORB_PICKUP
- Sound6: FIREWORK_TWINKLE2
- Sound7: NOTE_SNARE_DRUM
- Sound8: NOTE_BASS_GUITAR
- Sound9: FIRE_IGNITE
- Sound10: FIZZ
- Sound11: SUCCESSFUL_HIT
- Sound13: YOUR_SOUND
- Sound14: Choco324
- SoundVolume: 200.0
- #-Comandos-
- comando: emoji
- comando2: emoji2
- comando3: emoji3
- comando4: emoji4
- #-Permisos-
- perm1: apm.admin
- perm2: apm.use
- #-Prefix-
- apm: &7[&6APM&7]&f
- apm2: &7[&6APM&7]
- #-Versiones-
- version: V1.1
- ver: V1.1
- #-Update-
- Emot: &7[&6APM&7]&f
- apmtch: APM
- #===============================================================================================================================
- command /adminpanelmenuch [<text>]:
- permission: {@perm1}
- permission message: &4Necesitas permisos para usar esto.
- aliases: /apm
- usage: /apm menu
- trigger:
- if arg 1 is "menu":
- if {@esp} is true:
- open chest with 2 row named "%{emot}%" to player
- open chest with 2 row named "%{emot}% Herramientas" to player
- format slot 0 of player with diamond named "&6Dia" with lore "||&6Haz de dia en el servidor||||&7APM||" to close then run [make player execute command "/time set day"]
- format slot 1 of player with diamond named "&5Noche" with lore "||&6Haz de noche en el servidor||||&7APM||" to close then run [make player execute command "/time set night"]
- format slot 2 of player with diamond named "&5Lluvia" with lore "||&6Quita o pon la lluvia||||&7APM||" to close then run [make player execute command "/toggledownfall"]
- format slot 3 of player with diamond named "&5Trueno" with lore "||&6Lanza un rayo||||&7APM||" to close then run [make player execute command "/thor"]
- format slot 4 of player with diamond named "&2Creativo" with lore "||&6Ponte en creativo||||&7APM||" to close then run [make player execute command "/gamemode 1"]
- format slot 5 of player with diamond named "&2Survival" with lore "||&6Ponte en survival||||&7APM||" to close then run [make player execute command "/gamemode 0"]
- format slot 6 of player with diamond named "&2Espectador" with lore "||&6Ponte en Espectador||||&7APM||" to close then run [make player execute command "/gamemode 3"]
- format slot 7 of player with diamond named "&2Invisible" with lore "||&6Ponte invisible||||&7APM||" to close then run [make player execute command "/v"]
- format slot 8 of player with diamond named "&2Espiar" with lore "||&6Espia los msg de los users||||&7APM||" to close then run [make player execute command "/socialspy"]
- format slot 9 of player with diamond named "&2Lag" with lore "||&6Lag del Servidor||||&7APM||" to close then run [make player execute command "/lag"]
- format slot 10 of player with diamond named "&2Ping" with lore "||&6Ping del Servidor||||&7APM||" to close then run [make player execute command "/ping"]
- format slot 11 of player with diamond named "&2TPS" with lore "||&6Tps del Servidor||||&7APM||" to close then run [make player execute command "/tps"]
- format slot 12 of player with diamond named "&2StopLag" with lore "||&6StopLag del Servidor||||&7APM||" to close then run [make player execute command "/stoplag"]
- format slot 13 of player with egg named "&5Spawn EnderDragon" with lore "||&6Spawnea un EnderDragon||||&7APM||" to close then run [make player execute command "/spawnmob enderdragon"]
- format slot 14 of player with glass named "&4EnderCristal" with lore "||&6Spawnea un EnderCristal||||&7APM||" to close then run [make player execute command "/spawnmob endercrystal"]
- format slot 15 of player with feather named "&3Actualizar APM" with lore "||&6Actualiza APM||||&7APM||" to close then run [make player execute command "/apm update"]
- format slot 16 of player with emerald named "&4Reload" with lore "||&4Recarga el servidor||||&7APM||" to close then run [make player execute command "/reload"]
- format slot 17 of player with redstone named "&4Stop" with lore "||&4Apaga el servidor||||&7APM||" to close then run [make player execute command "/stop"]
- if {@ing} is true:
- open chest with 2 row named "%{emot}% Tools" to player
- format slot 1 of player with diamond named "Night" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/time set night"]
- format slot 0 of player with diamond named "Day" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/time set day"]
- format slot 2 of player with diamond named "&5Lluvia" with lore "||&6Quita o pon la lluvia||||&7APM||" to close then run [make player execute command "/toggledownfall"]
- format slot 3 of player with diamond named "&5Trueno" with lore "||&6Lanza un rayo||||&7APM||" to close then run [make player execute command "/thor"]
- format slot 4 of player with diamond named "&2Creative" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/gamemode 1"]
- format slot 5 of player with diamond named "&2Survival" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/gamemode 0"]
- format slot 6 of player with diamond named "&2Espectator" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/gamemode 3"]
- format slot 7 of player with diamond named "&2Inv" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/v"]
- format slot 8 of player with diamond named "&2Spy" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/socialspy"]
- format slot 9 of player with diamond named "&2Lag" with lore "||&6Lag the Servidor||||&7APM||" to close then run [make player execute command "/lag"]
- format slot 10 of player with diamond named "&2Ping" with lore "||&6Ping the Server||||&7APM||" to close then run [make player execute command "/ping"]
- format slot 11 of player with diamond named "&2TPS" with lore "||&6Tps the Server||||&7APM||" to close then run [make player execute command "/tps"]
- format slot 12 of player with diamond named "&2StopLag" with lore "||&6StopLag the Server||||&7APM||" to close then run [make player execute command "/stoplag"]
- format slot 13 of player with egg named "&5Spawn EnderDragon" with lore "||&6Spawn a EnderDragon||||&7APM||" to close then run [make player execute command "/spawnmob enderdragon"]
- format slot 14 of player with glass named "&4EnderCristal" with lore "||&6Spawn a EnderCristal||||&7APM||" to close then run [make player execute command "/spawnmob endercrystal"]
- format slot 15 of player with feather named "&3Update APM" with lore "||&6Update APM||||&7APM||" to close then run [make player execute command "/apm update"]
- format slot 16 of player with emerald named "&4Reload" with lore "||%{Emot}%||||&7APM||" to close then run [make player execute command "/reload"]
- format slot 17 of player with redstone named "&4Stop" with lore "||&4Stop the server||||&7APM||" to close then run [make player execute command "/stop"]
- stop
- if arg 1 is "reload":
- make console execute command "sk reload AdminPanelMenuCh"
- wait 2 seconds
- message "%{emot}% &7Reload finalizado"
- stop
- if arg 1 is "update":
- if {@updater} is true:
- wait 1 second
- if text from "http://pastebin.com/raw/3PLFLwtG" is not "{@version}":
- message "{@Emot} Nueva version disponible! &6Descarga de: &bhttps://www.spigotmc.org/resources/adminpanelmenuch.23876/"
- if text from "http://pastebin.com/raw/3PLFLwtG" is "{@version}":
- message "{@Emot} No hay actualizacion disponible."
- stop
- on load:
- message "&a-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-" to console
- message "&3Iniciando AdminPanelMenuCh!" to console
- message "&3Version: 1.1 - AdminPanelMenuCh by choco3224" to console
- message "&a-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-" to console
- #CARPETA
- on load:
- df "plugins/AdminPanelMenuCh/No modificar/config.yml"
- on load:
- if file "plugins/AdminPanelMenuCh/No modificar/config.yml" doesn't exists:
- wait 5 ticks
- create file "plugins/AdminPanelMenuCh/No modificar/config.yml"
- on load:
- if file "plugins/AdminPanelMenuCh/No modificar/config.yml" doesn't exists:
- wf "##====================================================" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "## Emotich {@ver}" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf " " to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "## Autor" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "## Creado por Choco3224" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "##====================================================" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "## /emotich help traduccion" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "Menu: &5/emotich menu - &7Menu de emoticonos" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "Cerrar: &4Cerrar menu" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- wf "Prefix: {@apm2}" to "plugins/AdminPanelMenuCh/No modificar/config.yml"
- set {emot} to value "Prefix" get of "plugins/AdminPanelMenuCh/No modificar/config.yml"
- set {cr} to value "Cerrar" get of "plugins/AdminPanelMenuCh/No modificar/config.yml"
- set {apmch} to value "Menu" get of "plugins/AdminPanelMenuCh/No modificar/config.yml"
- else:
- set {cr} to value "Cerrar" get of "plugins/AdminPanelMenuCh/No modificar/config.yml"
- set {apmch} to value "Menu" get of "plugins/AdminPanelMenuCh/No modificar/config.yml"
- command /apmenucerrar:
- permission: {@perm1}
- permission message: &4Necesitas permisos para usar esto.
- trigger:
- if {@ing} is true:
- message "%{emot}%&7Menu closed"
- if {@esp} is true:
- message "%{emot}%&7Menu cerrado"
- #==============================================================================================================================
- #---UPDATE---
- on join:
- if {@updater} is true:
- player has permission "{@perm1}":
- wait 1 second
- if text from "http://pastebin.com/raw/MRmM15K9" is not "{@version}":
- message "{@Emot} Nueva version disponible! &6Descarga de: &bhttps://www.spigotmc.org/resources/adminpanelmenuch.23876/"
- on skript unload:
- wait a tick
- execute console command "sk reload AdminPanelMenuCh"
- send "{@Emot} Cargando actualizacion..." to console
- on skript load:
- execute console command "sk reload AdminPanelMenuCh"
- send "{@Emot} Actualizado correctamente :D &a {@version}" to console
- every 300 seconds:
- if {@Autoupdate} is true:
- if text from "http://pastebin.com/raw/MRmM15K9" is not "{@version}":
- download from "http://pastebin.com/raw/MRmM15K9" to "plugins/Skript/scripts/AdminPanelMenuCh.sk"
- wait 5 ticks
- execute console command "skript reload AdminPanelMenuCh"
- wait 5 ticks
- loop all players:
- if loop-player is op:
- send "&e&lActualización AdminPanelMenuCh a la versión {@version} " to loop-player
- send "&bActualización de la sección de opciones si es necesario!" to loop-player
- send "&aPor favor reporta cualquier bug!" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement