mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixed plot visit
This commit is contained in:
		@@ -58,7 +58,7 @@ public class Visit extends SubCommand {
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean onCommand(PlotPlayer plr, String[] args) {
 | 
			
		||||
        ArrayList<Plot> plots = new ArrayList<>();
 | 
			
		||||
        UUID user = UUIDHandler.getUUID(args[0], null);
 | 
			
		||||
        UUID user = UUIDHandler.getCachedUUID(args[0], null);
 | 
			
		||||
        if (user != null ) {
 | 
			
		||||
            // do plots by username
 | 
			
		||||
            plots.addAll(PS.get().getPlots(user));
 | 
			
		||||
 
 | 
			
		||||
@@ -110,6 +110,10 @@ public class UUIDHandler {
 | 
			
		||||
    public static UUID getUUID(final String name, RunnableVal<UUID> ifFetch) {
 | 
			
		||||
        return implementation.getUUID(name, ifFetch);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static UUID getCachedUUID(final String name, RunnableVal<UUID> ifFetch) {
 | 
			
		||||
        return implementation.getUUIDMap().get(new StringWrapper(name));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static Map<String, PlotPlayer> getPlayers() {
 | 
			
		||||
        return implementation.getPlayers();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user