Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #OpenSource
- #EasyHomes V3.2.19 by Green_GamerNL
- #Copyright
- #Official CODE
- #EasyHomes by Green_GamerNL/GreenGamer42
- #Thanks for downloading!
- #
- #Please do not change the code.
- #Please do not use my code.
- #Please do not upload my code.
- #
- #For support, join my discord server here: https://discord.gg/NYu4VST
- #If you like my resource, please consider rating at Spigot!
- on load:
- if file "plugins/EasyHomes/config.yml" doesn't exist:
- create file "plugins/EasyHomes/config.yml"
- write "##The prefix." at line 1 to file "plugins/EasyHomes/config.yml"
- write "prefix: $e$[$a$EasyHomes$e$]" at line 2 to file "plugins/EasyHomes/config.yml"
- write "##The warmup duration in seconds. Set to 0 if you want to disable this." at line 4 to file "plugins/EasyHomes/config.yml"
- write "warmup: 3" at line 5 to file "plugins/EasyHomes/config.yml"
- write "##Maximum amount of homes players can set (Do not set this to a high number, it can cause lag)" at line 7 to file "plugins/EasyHomes/config.yml"
- write "maxhomes: 5" at line 8 to file "plugins/EasyHomes/config.yml"
- write "##Do you want to use the normal prefix at a error? If false, it will use the customerrorprefix instead." at line 10 to file "plugins/EasyHomes/config.yml"
- write "prefixonerror: false" at line 11 to file "plugins/EasyHomes/config.yml"
- write "customerrorprefix: $4$ERROR," at line 12 to file "plugins/EasyHomes/config.yml"
- write "##Sign options" at line 14 to file "plugins/EasyHomes/config.yml"
- write "usesigns: true" at line 15 to file "plugins/EasyHomes/config.yml"
- if file "plugins/EasyHomes/permissions.yml" doesn't exist:
- create file "plugins/EasyHomes/permissions.yml"
- write "##/sethome" at line 1 to file "plugins/EasyHomes/permissions.yml"
- write "sethome: easyhomes.sethome" at line 2 to file "plugins/EasyHomes/permissions.yml"
- write "##/delhome" at line 4 to file "plugins/EasyHomes/permissions.yml"
- write "delhome: easyhomes.delhome" at line 5 to file "plugins/EasyHomes/permissions.yml"
- write "##/homes" at line 7 to file "plugins/EasyHomes/permissions.yml"
- write "homeslist: easyhomes.homes" at line 8 to file "plugins/EasyHomes/permissions.yml"
- write "##/home" at line 10 to file "plugins/EasyHomes/permissions.yml"
- write "hometeleport: easyhomes.home" at line 11 to file "plugins/EasyHomes/permissions.yml"
- write "##/easyhomes info" at line 13 to file "plugins/EasyHomes/permissions.yml"
- write "infocommand: easyhomes.info" at line 14 to file "plugins/EasyHomes/permissions.yml"
- write "##/easyhomes reload" at line 16 to file "plugins/EasyHomes/permissions.yml"
- write "reloadcommand: easyhomes.reload" at line 17 to file "plugins/EasyHomes/permissions.yml"
- write "##/easyhomes help" at line 19 to file "plugins/EasyHomes/permissions.yml"
- write "helpcommand: easyhomes.help" at line 20 to file "plugins/EasyHomes/permissions.yml"
- write "##/easyhomes help" at line 22 to file "plugins/EasyHomes/permissions.yml"
- write "debugcommand: easyhomes.debugpaste" at line 23 to file "plugins/EasyHomes/permissions.yml"
- write "##Sign Permissions" at line 25 to file "plugins/EasyHomes/permissions.yml"
- write "usesigns: easyhomes.usesigns" at line 26 to file "plugins/EasyHomes/permissions.yml"
- write "placesigns: easyhomes.placesigns" at line 27 to file "plugins/EasyHomes/permissions.yml"
- write "##Other permissions" at line 29 to file "plugins/EasyHomes/permissions.yml"
- write "##The permission must end with a '.'. The permission will be yourperm.<number of homes players can set>." at line 31 to file "plugins/EasyHomes/permissions.yml"
- write "maxhomes: easyhomes.maxhomes." at line 32 to file "plugins/EasyHomes/permissions.yml"
- if file "plugins/EasyHomes/worlds.yml" doesn't exist:
- create file "plugins/EasyHomes/worlds.yml"
- add "world" to yaml list "worlds" of file "plugins/EasyHomes/worlds.yml"
- add "world_nether" to yaml list "worlds" of file "plugins/EasyHomes/worlds.yml"
- add "world_end" to yaml list "worlds" of file "plugins/EasyHomes/worlds.yml"
- if file "plugins/EasyHomes/messages.yml" doesn't exist:
- create file "plugins/EasyHomes/messages.yml"
- write "##Errors, (no colorcodes supported!)." at line 1 to file "plugins/EasyHomes/messages.yml"
- write "noperm: You don't have permission!" at line 2 to file "plugins/EasyHomes/messages.yml"
- write "homealreadyexist: That home is already set!" at line 3 to file "plugins/EasyHomes/messages.yml"
- write "homedoesntexist: That home doesn't exits!" at line 4 to file "plugins/EasyHomes/messages.yml"
- write "maxhomesreached: Maximum homes reached!" at line 5 to file "plugins/EasyHomes/messages.yml"
- write "donthaveanyhomes: You don't have any homes!" at line 6 to file "plugins/EasyHomes/messages.yml"
- write "inwarmup: You are in warmup!" at line 7 to file "plugins/EasyHomes/messages.yml"
- write "wrongworld: You cannot do this here!" at line 8 to file "plugins/EasyHomes/messages.yml"
- write "##Sethome command." at line 10 to file "plugins/EasyHomes/messages.yml"
- write "homeset: $3$Home $d$$home$ $a$set!" at line 11 to file "plugins/EasyHomes/messages.yml"
- write "##Delhome command." at line 13 to file "plugins/EasyHomes/messages.yml"
- write "homedeleted: $3$Home $d$$home$ $c$deleted!" at line 14 to file "plugins/EasyHomes/messages.yml"
- write "##Home command." at line 16 to file "plugins/EasyHomes/messages.yml"
- write "teleportedtohome: $3$You have been telepored to home $d$$home$!" at line 17 to file "plugins/EasyHomes/messages.yml"
- write "teleportwarmup: $c$Teleporting to home $d$$home$ $c$in $e$$warmup$ seconds..." at line 18 to file "plugins/EasyHomes/messages.yml"
- set {easyhomes.config::prefix} to yaml value "prefix" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.config::warmup} to yaml value "warmup" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.config::maxhomes} to yaml value "maxhomes" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.config::prefixonerror} to yaml value "prefixonerror" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.config::customerrorprefix} to yaml value "customerrorprefix" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.config::usesigns} to yaml value "usesigns" of file "plugins/EasyHomes/config.yml"
- set {easyhomes.message::noperm} to yaml value "noperm" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::homealreadyexist} to yaml value "homealreadyexist" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::homedoesntexist} to yaml value "homedoesntexist" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::maxhomesreached} to yaml value "maxhomesreached" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::donthaveanyhomes} to yaml value "donthaveanyhomes" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::inwarmup} to yaml value "inwarmup" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::wrongworld} to yaml value "wrongworld" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::homeset} to yaml value "homeset" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::homedeleted} to yaml value "homedeleted" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::teleportedtohome} to yaml value "teleportedtohome" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.message::teleportwarmup} to yaml value "teleportwarmup" of file "plugins/EasyHomes/messages.yml"
- set {easyhomes.worlds::*} to yaml list "worlds" of file "plugins/EasyHomes/worlds.yml"
- set {easyhomes.permissions::sethome} to yaml value "sethome" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::delhome} to yaml value "delhome" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::homeslist} to yaml value "homeslist" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::hometeleport} to yaml value "hometeleport" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::infocommand} to yaml value "infocommand" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::helpcommand} to yaml value "helpcommand" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::reloadcommand} to yaml value "reloadcommand" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::debugcommand} to yaml value "debugcommand" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::maxhomes} to yaml value "maxhomes" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::placesigns} to yaml value "placesigns" of file "plugins/EasyHomes/permissions.yml"
- set {easyhomes.permissions::usesigns} to yaml value "usesigns" of file "plugins/EasyHomes/permissions.yml"
- replace all "$0$" with "<black>" in {easyhomes.config::prefix}
- replace all "$1$" with "<dark blue>" in {easyhomes.config::prefix}
- replace all "$2$" with "<dark green>" in {easyhomes.config::prefix}
- replace all "$3$" with "<dark aqua>" in {easyhomes.config::prefix}
- replace all "$4$" with "<dark red>" in {easyhomes.config::prefix}
- replace all "$5$" with "<dark purple>" in {easyhomes.config::prefix}
- replace all "$6$" with "<gold>" in {easyhomes.config::prefix}
- replace all "$7$" with "<gray>" in {easyhomes.config::prefix}
- replace all "$8$" with "<dark gray>" in {easyhomes.config::prefix}
- replace all "$9$" with "<light blue>" in {easyhomes.config::prefix}
- replace all "$a$" with "<light green>" in {easyhomes.config::prefix}
- replace all "$b$" with "<light aqua>" in {easyhomes.config::prefix}
- replace all "$c$" with "<light red>" in {easyhomes.config::prefix}
- replace all "$d$" with "<light purple>" in {easyhomes.config::prefix}
- replace all "$e$" with "<yellow>" in {easyhomes.config::prefix}
- replace all "$f$" with "<white>" in {easyhomes.config::prefix}
- replace all "$l$" with "<b>" in {easyhomes.config::prefix}
- replace all "$k$" with "<magic>" in {easyhomes.config::prefix}
- replace all "$m$" with "<strike>" in {easyhomes.config::prefix}
- replace all "$n$" with "<underlined>" in {easyhomes.config::prefix}
- replace all "$o$" with "<italic>" in {easyhomes.config::prefix}
- replace all "$r$" with "<reset>" in {easyhomes.config::prefix}
- replace all "$0$" with "<black>" in {easyhomes.config::customerrorprefix}
- replace all "$1$" with "<dark blue>" in {easyhomes.config::customerrorprefix}
- replace all "$2$" with "<dark green>" in {easyhomes.config::customerrorprefix}
- replace all "$3$" with "<dark aqua>" in {easyhomes.config::customerrorprefix}
- replace all "$4$" with "<dark red>" in {easyhomes.config::customerrorprefix}
- replace all "$5$" with "<dark purple>" in {easyhomes.config::customerrorprefix}
- replace all "$6$" with "<gold>" in {easyhomes.config::customerrorprefix}
- replace all "$7$" with "<gray>" in {easyhomes.config::customerrorprefix}
- replace all "$8$" with "<dark gray>" in {easyhomes.config::customerrorprefix}
- replace all "$9$" with "<light blue>" in {easyhomes.config::customerrorprefix}
- replace all "$a$" with "<light green>" in {easyhomes.config::customerrorprefix}
- replace all "$b$" with "<light aqua>" in {easyhomes.config::customerrorprefix}
- replace all "$c$" with "<light red>" in {easyhomes.config::customerrorprefix}
- replace all "$d$" with "<light purple>" in {easyhomes.config::customerrorprefix}
- replace all "$e$" with "<yellow>" in {easyhomes.config::customerrorprefix}
- replace all "$f$" with "<white>" in {easyhomes.config::customerrorprefix}
- replace all "$l$" with "<b>" in {easyhomes.config::customerrorprefix}
- replace all "$k$" with "<magic>" in {easyhomes.config::customerrorprefix}
- replace all "$m$" with "<strike>" in {easyhomes.config::customerrorprefix}
- replace all "$n$" with "<underlined>" in {easyhomes.config::customerrorprefix}
- replace all "$o$" with "<italic>" in {easyhomes.config::customerrorprefix}
- replace all "$r$" with "<reset>" in {easyhomes.config::customerrorprefix}
- replace all "$0$" with "<black>" in {easyhomes.message::homeset}
- replace all "$1$" with "<dark blue>" in {easyhomes.message::homeset}
- replace all "$2$" with "<dark green>" in {easyhomes.message::homeset}
- replace all "$3$" with "<dark aqua>" in {easyhomes.message::homeset}
- replace all "$4$" with "<dark red>" in {easyhomes.message::homeset}
- replace all "$5$" with "<dark purple>" in {easyhomes.message::homeset}
- replace all "$6$" with "<gold>" in {easyhomes.message::homeset}
- replace all "$7$" with "<gray>" in {easyhomes.message::homeset}
- replace all "$8$" with "<dark gray>" in {easyhomes.message::homeset}
- replace all "$9$" with "<light blue>" in {easyhomes.message::homeset}
- replace all "$a$" with "<light green>" in {easyhomes.message::homeset}
- replace all "$b$" with "<light aqua>" in {easyhomes.message::homeset}
- replace all "$c$" with "<light red>" in {easyhomes.message::homeset}
- replace all "$d$" with "<light purple>" in {easyhomes.message::homeset}
- replace all "$e$" with "<yellow>" in {easyhomes.message::homeset}
- replace all "$f$" with "<white>" in {easyhomes.message::homeset}
- replace all "$l$" with "<b>" in {easyhomes.message::homeset}
- replace all "$k$" with "<magic>" in {easyhomes.message::homeset}
- replace all "$m$" with "<strike>" in {easyhomes.message::homeset}
- replace all "$n$" with "<underlined>" in {easyhomes.message::homeset}
- replace all "$o$" with "<italic>" in {easyhomes.message::homeset}
- replace all "$r$" with "<reset>" in {easyhomes.message::homeset}
- replace all "$0$" with "<black>" in {easyhomes.message::homedeleted}
- replace all "$1$" with "<dark blue>" in {easyhomes.message::homedeleted}
- replace all "$2$" with "<dark green>" in {easyhomes.message::homedeleted}
- replace all "$3$" with "<dark aqua>" in {easyhomes.message::homedeleted}
- replace all "$4$" with "<dark red>" in {easyhomes.message::homedeleted}
- replace all "$5$" with "<dark purple>" in {easyhomes.message::homedeleted}
- replace all "$6$" with "<gold>" in {easyhomes.message::homedeleted}
- replace all "$7$" with "<gray>" in {easyhomes.message::homedeleted}
- replace all "$8$" with "<dark gray>" in {easyhomes.message::homedeleted}
- replace all "$9$" with "<light blue>" in {easyhomes.message::homedeleted}
- replace all "$a$" with "<light green>" in {easyhomes.message::homedeleted}
- replace all "$b$" with "<light aqua>" in {easyhomes.message::homedeleted}
- replace all "$c$" with "<light red>" in {easyhomes.message::homedeleted}
- replace all "$d$" with "<light purple>" in {easyhomes.message::homedeleted}
- replace all "$e$" with "<yellow>" in {easyhomes.message::homedeleted}
- replace all "$f$" with "<white>" in {easyhomes.message::homedeleted}
- replace all "$l$" with "<b>" in {easyhomes.message::homedeleted}
- replace all "$k$" with "<magic>" in {easyhomes.message::homedeleted}
- replace all "$m$" with "<strike>" in {easyhomes.message::homedeleted}
- replace all "$n$" with "<underlined>" in {easyhomes.message::homedeleted}
- replace all "$o$" with "<italic>" in {easyhomes.message::homedeleted}
- replace all "$r$" with "<reset>" in {easyhomes.message::homedeleted}
- replace all "$0$" with "<black>" in {easyhomes.message::teleportedtohome}
- replace all "$1$" with "<dark blue>" in {easyhomes.message::teleportedtohome}
- replace all "$2$" with "<dark green>" in {easyhomes.message::teleportedtohome}
- replace all "$3$" with "<dark aqua>" in {easyhomes.message::teleportedtohome}
- replace all "$4$" with "<dark red>" in {easyhomes.message::teleportedtohome}
- replace all "$5$" with "<dark purple>" in {easyhomes.message::teleportedtohome}
- replace all "$6$" with "<gold>" in {easyhomes.message::teleportedtohome}
- replace all "$7$" with "<gray>" in {easyhomes.message::teleportedtohome}
- replace all "$8$" with "<dark gray>" in {easyhomes.message::teleportedtohome}
- replace all "$9$" with "<light blue>" in {easyhomes.message::teleportedtohome}
- replace all "$a$" with "<light green>" in {easyhomes.message::teleportedtohome}
- replace all "$b$" with "<light aqua>" in {easyhomes.message::teleportedtohome}
- replace all "$c$" with "<light red>" in {easyhomes.message::teleportedtohome}
- replace all "$d$" with "<light purple>" in {easyhomes.message::teleportedtohome}
- replace all "$e$" with "<yellow>" in {easyhomes.message::teleportedtohome}
- replace all "$f$" with "<white>" in {easyhomes.message::teleportedtohome}
- replace all "$l$" with "<b>" in {easyhomes.message::teleportedtohome}
- replace all "$k$" with "<magic>" in {easyhomes.message::teleportedtohome}
- replace all "$m$" with "<strike>" in {easyhomes.message::teleportedtohome}
- replace all "$n$" with "<underlined>" in {easyhomes.message::teleportedtohome}
- replace all "$o$" with "<italic>" in {easyhomes.message::teleportedtohome}
- replace all "$r$" with "<reset>" in {easyhomes.message::teleportedtohome}
- replace all "$0$" with "<black>" in {easyhomes.message::teleportwarmup}
- replace all "$1$" with "<dark blue>" in {easyhomes.message::teleportwarmup}
- replace all "$2$" with "<dark green>" in {easyhomes.message::teleportwarmup}
- replace all "$3$" with "<dark aqua>" in {easyhomes.message::teleportwarmup}
- replace all "$4$" with "<dark red>" in {easyhomes.message::teleportwarmup}
- replace all "$5$" with "<dark purple>" in {easyhomes.message::teleportwarmup}
- replace all "$6$" with "<gold>" in {easyhomes.message::teleportwarmup}
- replace all "$7$" with "<gray>" in {easyhomes.message::teleportwarmup}
- replace all "$8$" with "<dark gray>" in {easyhomes.message::teleportwarmup}
- replace all "$9$" with "<light blue>" in {easyhomes.message::teleportwarmup}
- replace all "$a$" with "<light green>" in {easyhomes.message::teleportwarmup}
- replace all "$b$" with "<light aqua>" in {easyhomes.message::teleportwarmup}
- replace all "$c$" with "<light red>" in {easyhomes.message::teleportwarmup}
- replace all "$d$" with "<light purple>" in {easyhomes.message::teleportwarmup}
- replace all "$e$" with "<yellow>" in {easyhomes.message::teleportwarmup}
- replace all "$f$" with "<white>" in {easyhomes.message::teleportwarmup}
- replace all "$l$" with "<b>" in {easyhomes.message::teleportwarmup}
- replace all "$k$" with "<magic>" in {easyhomes.message::teleportwarmup}
- replace all "$m$" with "<strike>" in {easyhomes.message::teleportwarmup}
- replace all "$n$" with "<underlined>" in {easyhomes.message::teleportwarmup}
- replace all "$o$" with "<italic>" in {easyhomes.message::teleportwarmup}
- replace all "$r$" with "<reset>" in {easyhomes.message::teleportwarmup}
- on join:
- if file "plugins/EasyHomes/data/%player's uuid%" doesn't exist:
- create file "plugins/EasyHomes/data/%player's uuid%.yml"
- command /sethome [<text>]:
- executable by: players
- trigger:
- if {easyhomes.worlds::*} contains "%player's world%":
- if player has permission "%{easyhomes.permissions::sethome}%":
- if arg 1 is set:
- set {_t} to size of {easyhomes.homes.%player's uuid%::*} + 1
- set {_count} to "%{easyhomes.config::maxhomes}%" parsed as integer
- loop {easyhomes.config::maxhomes} times:
- remove 1 from {_count}
- set {_c} to "%{_count}%" parsed as integer
- if player has permission "%{easyhomes.permissions::maxhomes}%%{_count}%":
- if {_t} is not greater than {_c}:
- if {easyhomes.home.%arg 1%.%player's uuid%} is not set:
- set {easyhomes.home.%arg 1%.%player's uuid%} to location of player
- add arg-1 to {easyhomes.homes.%player's uuid%::*}
- set {easyhomes.sethome.message.%player's uuid%} to "%{easyhomes.message::homeset}%"
- replace all "$home$" with arg 1 in {easyhomes.sethome.message.%player's uuid%}
- send colored "%{easyhomes.config::prefix}% %{easyhomes.sethome.message.%player's uuid%}%"
- add "%arg 1%: %player's location% %player's world%" to yaml list "homes.%{_t}%" of file "plugins/EasyHomes/data/%player's uuid%.yml"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::homealreadyexist}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::homealreadyexist}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::maxhomesreached}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::maxhomesreached}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c/sethome <home>"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c/sethome <home>"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- command /delhome [<text>]:
- executable by: players
- trigger:
- if {easyhomes.worlds::*} contains "%player's world%":
- if player has permission "%{easyhomes.permissions::delhome}%":
- if arg 1 is set:
- if {easyhomes.home.%arg 1%.%player's uuid%} is set:
- set {_t} to size of {easyhomes.homes.%player's uuid%::*}
- delete {easyhomes.home.%arg 1%.%player's uuid%}
- remove arg-1 from {easyhomes.homes.%player's uuid%::*}
- set {_message} to "%{easyhomes.message::homedeleted}%"
- replace all "$home$" with arg 1 in {_message}
- send colored "%{easyhomes.config::prefix}% %{_message}%"
- delete skutil yaml nodes "homes.%{_t}%" from file "plugins/EasyHomes/data/%player's uuid%.yml"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c/delhome <home>"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c/delhome <home>"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- command /homes:
- executable by: players
- trigger:
- if {easyhomes.worlds::*} contains "%player's world%":
- if player has permission "%{easyhomes.permissions::homeslist}%":
- set {_var} to size of {easyhomes.homes.%player's uuid%::*}
- if {_var} is more than 0:
- send colored "&cYour homes:"
- loop {easyhomes.homes.%player's uuid%::*}:
- send colored "&7- &d%loop-value%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::donthaveanyhomes}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::donthaveanyhomes}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- command /home [<text>]:
- executable by: players
- trigger:
- if {easyhomes.worlds::*} contains "%player's world%":
- if player has permission "%{easyhomes.permissions::hometeleport}%":
- if arg 1 is set:
- if {easyhomes.warmup.%player's uuid%} is not set:
- if {easyhomes.home.%arg 1%.%player's uuid%} is set:
- if {easyhomes.config::warmup} is 0:
- teleport player to {easyhomes.home.%arg 1%.%player's uuid%}
- set {easyhomes.lastteleported.%player's uuid%} to now
- set {_message} to "%{easyhomes.message::teleportedtohome}%"
- replace all "$home$" with arg 1 in {_message}
- send colored "%{easyhomes.config::prefix}% %{_message}%"
- stop
- else:
- set {easyhomes.warmup.%player's uuid%} to true
- set {_message} to "%{easyhomes.message::teleportwarmup}%"
- replace all "$home$" with arg 1 in {_message}
- replace all "$warmup$" with "%{easyhomes.config::warmup}%" in {_message}
- send colored "%{easyhomes.config::prefix}% %{_message}%"
- loop {easyhomes.config::warmup} times:
- wait 1 second
- teleport player to {easyhomes.home.%arg 1%.%player's uuid%}
- delete {easyhomes.warmup.%player's uuid%}
- set {_message} to "%{easyhomes.message::teleportedtohome}%"
- replace all "$home$" with arg 1 in {_message}
- send colored "%{easyhomes.config::prefix}% %{_message}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- else:
- if {easyhomes.onfig::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::inwarmup}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::inwarmup}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::prefix}% &c/home <home>"
- stop
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::customerrorprefix}% &c/home <home>"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::wrongworld}%"
- stop
- command /easyhomes [<text>]:
- executable by: players
- trigger:
- if arg 1 is "reload":
- if player has permission "%{easyhomes.permissions::reloadcommand}%":
- send "%{easyhomes.config::prefix}% &aEasyHomes reloaded!"
- execute console command "sk reload EasyHomes"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- if arg 1 is "help":
- if player has permission "%{easyhomes.permissions::helpcommand}%":
- send "&cEasyHomes:"
- send "&e/sethome <home> &7- Create a home!"
- send "&e/delhome <home> &7- Delete a home!"
- send "&e/homes &7- See all your homes!"
- send "&e/home <home> &7- Teleport to your home!"
- send "&e/easyhomes reload &7- Reload EasyHomes config!"
- send "&e/easyhomes help &7- Get this message!"
- send "&e/easyhomes debugpaste &7- Debugging!"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- if arg 1 is "info":
- if player has permission "%{easyhomes.permissions::infocommand}%":
- send "&c&lEasyHomes &eby &aGreen_GamerNL"
- send "&bYou are using version &d3.2.19"
- send " "
- send "&7Do &e/easyhomes help &7for a list of all commands."
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- if arg 1 is "debugpaste":
- if player has permission "%{easyhomes.permissions::debugcommand}%":
- create file "plugins/EasyHomes/debugpaste.yml"
- send "&aSuccesfully created file &cdebugpaste.yml&a. All debug information is located there."
- write "%now%" at line 1 to file "plugins/EasyHomes/debugpaste.yml"
- write "##This is a debug file. Please send this to our discord server or message the author on Spigot, when you have problems using EasyHomes" at line 2 to file "plugins/EasyHomes/debugpaste.yml"
- write "##After sending it to our discord or the author, you can remove this file." at line 3 to file "plugins/EasyHomes/debugpaste.yml"
- write "Version: 3.2.19" at line 4 to file "plugins/EasyHomes/debugpaste.yml"
- write "Server Version: %minecraft version%" at line 5 to file "plugins/EasyHomes/debugpaste.yml"
- write "Bukkit Version: %bukkit version%" at line 6 to file "plugins/EasyHomes/debugpaste.yml"
- write "Skript Version: %skript version%" at line 7 to file "plugins/EasyHomes/debugpaste.yml"
- write " " at line 8 to file "plugins/EasyHomes/debugpaste.yml"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- else:
- if player has permission "%{easyhomes.permissions::infocommand}%":
- send "&c&lEasyHomes &eby &aGreen_GamerNL"
- send "&bYou are using version &d3.2.19"
- send " "
- send "&7Do &e/easyhomes help &7for a list of all commands."
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- on rightclick on sign:
- if {easyhomes.config::usesigns} is true:
- if line 1 of block is "§a[EasyHomes]":
- if line 2 of block is "§bTeleport":
- if player has permission "%{easyhomes.permissions::usesigns}%":
- loop {easyhomes.homes.%player's uuid%::*}:
- if line 3 of block is "§e%loop-value%":
- execute player command "home %loop-value%"
- set {_var} to true
- stop
- if {_var} is not set:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::homedoesntexist}%"
- stop
- else:
- if {easyhomes.config::prefixonerror} is true:
- send colored "%{easyhomes.config::prefix}% &c%{easyhomes.message::noperm}%"
- stop
- if {easyhomes.config::prefixonerror} is false:
- send colored "%{easyhomes.config::customerrorprefix}% &c%{easyhomes.message::noperm}%"
- stop
- on sign change:
- if {easyhomes.config::usesigns} is true:
- if line 1 of event-block is "[EasyHomes]":
- if line 2 of event-block is "Home":
- if player has permission "%{easyhomes.permissions::placesigns}%":
- set {_var} to "§e%line 3 of event-block%"
- set line 1 of event-block to "§a[EasyHomes]"
- set line 2 of event-block to "§bTeleport"
- set line 3 of event-block to "%{_var}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement