MCPcopy Create free account
hub / github.com/Teneted/Tenet / execute

Method execute

src/main/java/org/spigotmc/RestartCommand.java:21–36  ·  view source on GitHub ↗
(CommandSender sender, String currentAlias, String[] args)

Source from the content-addressed store, hash-verified

19 }
20
21 @Override
22 public boolean execute(CommandSender sender, String currentAlias, String[] args)
23 {
24 if ( testPermission( sender ) )
25 {
26 MinecraftServer.getServer().processQueue.add( new Runnable()
27 {
28 @Override
29 public void run()
30 {
31 restart();
32 }
33 } );
34 }
35 return true;
36 }
37
38 public static void restart()
39 {

Callers

nothing calls this directly

Calls 3

testPermissionMethod · 0.80
addMethod · 0.65
getServerMethod · 0.65

Tested by

no test coverage detected