This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from CloudNetService/development
Release of 2.1.14
- Loading branch information
Showing
18 changed files
with
253 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
cloudnet-core/src/main/java/de/dytanic/cloudnetcore/command/CommandDebug.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) Tarek Hosni El Alaoui 2017 | ||
*/ | ||
|
||
package de.dytanic.cloudnetcore.command; | ||
|
||
import de.dytanic.cloudnet.command.Command; | ||
import de.dytanic.cloudnet.command.CommandSender; | ||
import de.dytanic.cloudnetcore.CloudNet; | ||
|
||
public final class CommandDebug extends Command { | ||
|
||
public CommandDebug() | ||
{ | ||
super("debug", "cloudnet.command.debug"); | ||
|
||
description = "Toggles the cloudnet debug mode"; | ||
|
||
} | ||
|
||
@Override | ||
public void onExecuteCommand(CommandSender sender, String[] args) | ||
{ | ||
CloudNet.getLogger().setDebugging(!CloudNet.getLogger().isDebugging()); | ||
if (CloudNet.getLogger().isDebugging()) { | ||
sender.sendMessage("debugging was enabled"); | ||
} else { | ||
sender.sendMessage("debugging was disabled"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.