Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
variables:
{autosmelt::%player%} = true
{autoinventory::%player%} = true
{smartdrop::%player%} = true
command /autosmelt [<text>]:
aliases: as
trigger:
if player has permission "prisonbasics.autosmelt.use":
if arg 1 is not set:
send "&b&lAutosmelt> &bplease use /autosmelt [on/off]."
else:
if arg 1 is "on":
if {autosmelt::%player%} is true:
send "&b&lAutosmelt> &byou have it already enabled."
stop
if {autosmelt::%player%} is false:
send "&b&lAutosmelt> &bhas been enabled"
set {autosmelt::%player%} to true
else if arg 1 is "off":
if {autosmelt::%player%} is false:
send "&b&lAutosmelt> &byou have it already disabled."
stop
if {autosmelt::%player%} is true:
send "&b&lAutosmelt> &bhas been disabled"
set {autosmelt::%player%} to false
else:
send "&b&lAutosmelt> &byou have typed something please try /autosmelt [on/off]."
else:
send "&7&l&oERROR: &c&oyou do not have permission for this command."
on mine of gold ore:
if player's gamemode is survival:
if {autosmelt::%player%} is true:
set block to air
drop 1 gold ingot
cancel the event
stop
if {autosmelt::%player%} is false:
stop
else:
stop
on mine of iron ore:
if player's gamemode is survival:
if {autosmelt::%player%} is true:
set block to air
drop 1 iron ingot
cancel the event
stop
if {autosmelt::%player%} is false:
stop
else:
stop
on mine of 21:
if player's gamemode is survival:
if {autosmelt::%player%} is true:
set block to air
drop 1 lapis lazuli
cancel the event
stop
if {autosmelt::%player%} is false:
stop
else:
stop
command /autoinventory [<text>]:
aliases: ai
trigger:
if player has permission "prisonbasics.autoinventory.use":
if arg 1 is not set:
send "&c&lAutoinventory> &cplease use /autoinventory [on/off]."
else:
if arg 1 is "on":
if {autoinventory::%player%} is true:
send "&c&lAutoinventory> &cyou have it already enabled."
stop
if {autoinventory::%player%} is false:
send "&c&lAutoinventory> &chas been enabled"
set {autoinventory::%player%} to true
else if arg 1 is "off":
if {autoinventory::%player%} is false:
send "&c&lAutoinventory> &cyou have it already disabled."
stop
if {autoinventory::%player%} is true:
send "&c&lAutoinventory> &chas been disabled"
set {autoinventory::%player%} to false
else:
send "&c&lAutoinventory> &cyou have typed something please try /autoinventory [on/off]."
else:
send "&7&l&oERROR: &c&oyou do not have permission for this command."
command /prisonbasics:
aliases: pbasics,pbv
trigger:
if player has permission "prisonbasics.version":
send "&bPrisonbasics created by WizzedPlayz Version 1.0."
command /prisionbasicsrl:
aliases: pbrl,pbasicsrl
trigger:
if player has permission "prisonbasics.reload":
execute console command "/sk reload PrisonBasics"
wait 1 tick
send "&aReloaded PrisonBasics"
on mine:
if player's gamemode is survival:
if {autoinventory::%player%} is true:
cancel event
set block to air
give player event-block
if {autoinventory::%player%} is false:
stop
command /prisonbasicshelp:
aliases: pbhelp,pbasicshelp
trigger:
if player has permission "prisonbasics.help":
send "&a-------PrisonBasics---------"
send "&a/autoinventory aliases: ai permission: prisonbasics.autoinventory.use - Puts things you mine in your inventory for you."
send "&a/prisonbasics aliases: pbasics,pbv permission: prisonbasics.version - Shows you the latest versions."
send "&a/prisionbasicsrl aliases: pbrl,pbasicsrl permission: prisonbasics.reload - Reloads the plugin."
send "&a/autosmelt aliases: as permission: prisonbasics.autosmelt.use - Auto smelts ores you mine."
send "&a/clearchat aliases: cc permission: prisonbasics.clearchat.use,prisonbasics.clearchat.all, prisonbasics.clearchat.me - Clears the chat."
send "&a/prisonbasicshelp aliases: pbhelp,pbasicshelp permission: prisonbasics.help - Gives you help."
send "&a-------PrisonBasics---------"
command /clearchat [<text>]:
aliases: cc
trigger:
if player has permission "prisonbasics.clearchat.use":
if arg 1 is not set:
send "&d&lClearchat> &dplease try /clearchat [all/me]."
else:
if arg 1 is "me":
if player has permission "prisonbasics.clearchat.me":
loop 300 times:
send " " to player
send "&d&lClearchat> &dYou have cleared your chat."
stop
else:
send "&7&l&oERROR: &c&oyou do not have permission for this command."
else if arg 1 is "all":
if player has permission "prisonbasics.clearchat.all":
loop 300 times:
broadcast " "
broadcast "&d&lClearchat> &d%player% has cleared your chat."
stop
else:
send "&d&lClearchat> &dplease try /clearchat [all/me]."
else:
send "&7&l&oERROR: &c&oyou do not have permission for this command."
command /mineparticle:
trigger:
if player has permission "prisonbasics.mineparticle.use":
if {mineparticle} is true:
set {mineparticle} to false
send "&c&lMineParticle has been disabled"
else:
set {mineparticle} to true
send "&c&lMineParticle has been Enabled"
on mine:
if {mineparticle} is true:
show 50 "flame" particles at location of targeted block for player offset by 0.4, 0.7, 0.4
else:
stop