Explorar el Código

Merge remote-tracking branch 'origin/master'

mastercake10 hace 6 años
padre
commit
7bafdb4cca
Se han modificado 2 ficheros con 10 adiciones y 4 borrados
  1. 4 0
      Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java
  2. 6 4
      README.md

+ 4 - 0
Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java

@@ -382,6 +382,10 @@ public class ATM implements Listener, CommandExecutor {
 	
 	@Override
 	public boolean onCommand(CommandSender cs, Command arg1, String arg2, String[] args) {
+		if (!(cs instanceof Player)) {
+			cs.sendMessage("Only players can use atms.");
+			return true;
+		}
 		if (args.length == 0) {
 			if (cs.hasPermission("tim.use")) {
 				openGUI((Player) cs);

+ 6 - 4
README.md

@@ -2,11 +2,13 @@
 [![discord](https://discordapp.com/api/guilds/330725294749122561/widget.png)](https://discord.gg/3xgsPh8)
 [![view on SpigotMC](https://img.shields.io/badge/view%20on-spigotmc-orange.svg)](https://www.spigotmc.org/resources/time-is-money.12409/)
 
+![resource icon](https://www.spigotmc.org/data/resource_icons/12/12409.jpg?1442674788)
+
 ## Welcome to the TimeIsMoney GitHub repository!
 TimeIsMoney is a Spigot plugin compatible with Spigot versions 1.7 through 1.12.2, that gives players money for their time online!
 
 In order for everyone to have the best experience possible, we have a few guidelines that everyone must follow.    
-- For all things on GitHub, please make sure you follow the [code of conduct](https://github.com/mastercake10/TimeIsMoney/blob/master/CODE_OF_CONDUCT.md).  
-- When creating an issue, please make sure you're using the [issue template](https://github.com/mastercake10/TimeIsMoney/blob/master/ISSUE_TEMPLATE.md).  
-- When submitting a pull request, please make sure you're using the [pull request template](https://github.com/mastercake10/TimeIsMoney/blob/master/PULL_REQUEST_TEMPLATE.md).
-- When contributing, please make sure you check out the [contribution guidelines](https://github.com/mastercake10/TimeIsMoney/blob/master/CONTRIBUTING.md).  
+- For all things on GitHub, please make sure you follow the [code of conduct](CODE_OF_CONDUCT.md).  
+- When creating an issue, please make sure you're using the [issue template](ISSUE_TEMPLATE.md).  
+- When submitting a pull request, please make sure you're using the [pull request template](PULL_REQUEST_TEMPLATE.md).
+- When contributing, please make sure you check out the [contribution guidelines](CONTRIBUTING.md).