mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	Add tab completion for gamemode flag
This commit is contained in:
		@@ -32,6 +32,9 @@ import com.sk89q.worldedit.world.gamemode.GameMode;
 | 
				
			|||||||
import com.sk89q.worldedit.world.gamemode.GameModes;
 | 
					import com.sk89q.worldedit.world.gamemode.GameModes;
 | 
				
			||||||
import org.checkerframework.checker.nullness.qual.NonNull;
 | 
					import org.checkerframework.checker.nullness.qual.NonNull;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.Arrays;
 | 
				
			||||||
 | 
					import java.util.Collection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
 | 
					public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static final GameMode DEFAULT = new GameMode("default");
 | 
					    public static final GameMode DEFAULT = new GameMode("default");
 | 
				
			||||||
@@ -115,4 +118,9 @@ public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public Collection<String> getTabCompletions() {
 | 
				
			||||||
 | 
					        return Arrays.asList("survival", "creative", "adventure", "spectator");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user