mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 03:54:19 +02:00
Merge pull request #110 from Yofel/master
use the correct enum types in the switch
This commit is contained in:
@@ -38,10 +38,10 @@ public class Commandgc extends EssentialsCommand
|
|||||||
String worldType = "World";
|
String worldType = "World";
|
||||||
switch (w.getEnvironment())
|
switch (w.getEnvironment())
|
||||||
{
|
{
|
||||||
case World.Environment.NETHER:
|
case NETHER:
|
||||||
worldType = "Nether";
|
worldType = "Nether";
|
||||||
break;
|
break;
|
||||||
case World.Environment.THE_END:
|
case THE_END:
|
||||||
worldType = "The End";
|
worldType = "The End";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user