Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F571098
TSCommand.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
929 B
Subscribers
None
TSCommand.java
View Options
package
me.despawningbone.togglespawner
;
import
org.bukkit.ChatColor
;
import
org.bukkit.command.Command
;
import
org.bukkit.command.CommandExecutor
;
import
org.bukkit.command.CommandSender
;
public
class
TSCommand
implements
CommandExecutor
{
private
TSMain
plugin
;
public
TSCommand
(
TSMain
instance
)
{
plugin
=
instance
;
}
@Override
public
boolean
onCommand
(
CommandSender
sender
,
Command
cmd
,
String
commandLabel
,
String
[]
args
)
{
if
(
args
.
length
>
0
&&
args
[
0
].
equalsIgnoreCase
(
"reload"
))
{
if
(
sender
.
hasPermission
(
"togglespawner.reload"
)
||
sender
.
isOp
())
{
ConfigHandler
configHandler
=
new
ConfigHandler
(
plugin
);
configHandler
.
getConfigValues
();
sender
.
sendMessage
(
ChatColor
.
BLUE
+
"Togglable Spawners has been reloaded."
);
}
else
{
sender
.
sendMessage
(
ChatColor
.
RED
+
"You do not have permission."
);
}
}
else
{
sender
.
sendMessage
(
"Unknown arguments."
);
}
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Mar 1, 6:16 PM (19 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dd/7f/30252646feafb522ce862939d247
Attached To
rTSP Togglable Spawners
Event Timeline
Log In to Comment