package com.endercrest.voidspawn.commands;

import org.bukkit.entity.Player;

import com.endercrest.voidspawn.VoidSpawn;

public class PlayerToggle implements SubCommand
  {
   VoidSpawn plugin;
   public PlayerToggle(VoidSpawn instance){
	this.plugin = instance;
   }
   public boolean onCommand(Player p, String[] args)
   {
     if(p.hasPermission("vs.player.toggle")){
				if(this.plugin.Toggle.containsKey(p.getUniqueId())){
					if(this.plugin.Toggle.get(p.getUniqueId()) == false){
						this.plugin.Toggle.put(p.getUniqueId(), true);
						p.sendMessage("Toggled teleport to: On");
					}
					else{
						p.sendMessage("Toggled teleport to: Off");
						this.plugin.Toggle.put(p.getUniqueId(), false);
					}
				}
				else{
					p.sendMessage("Toggled teleport to: Off");
					this.plugin.Toggle.put(p.getUniqueId(), false);
				}
				return true;
		     }
			 else{
				return false;
			 }
   }
   
   public String helpInfo()
   {
     return "/vs toggle - Turns off void teleport.";
   }
   
   public String permission()
   {
     return "vs.player.toggle";
   }

}

@@ -366,19 +366,16 @@
 gle%22))%7B%0A
-%09%09%09
 %09if(this
@@ -420,19 +420,16 @@
 Id()))%7B%0A
-%09%09%09
 %09%09if(thi
@@ -475,27 +475,24 @@
  false)%7B%0A%09%09%09
-%09%09
-%09
 this.plugin.
@@ -526,19 +526,16 @@
  true);%0A
-%09%09%09
 %09%09%09p.sen
@@ -575,26 +575,20 @@
 %22);%0A
-%09%09%09
 %09%09%7D%0A
-%09%09%09
 %09%09else%7B%0A
 %09%09%09%09
@@ -583,19 +583,16 @@
 %09%09else%7B%0A
-%09%09%09
 %09%09%09p.sen
@@ -632,19 +632,16 @@
 f%22);%0A%09%09%09
-%09%09
-%09
 this.plu
@@ -686,32 +686,20 @@
 ;%0A%09%09
-%09%09%09%7D%0A%09%09%09
+%7D%0A
 %09%7D%0A
-%09%09%09
 %09else%7B%0A
-%09%09%09
 %09%09p.
@@ -739,19 +739,16 @@
  Off%22);%0A
-%09%09%09
 %09%09this.p
@@ -794,16 +794,10 @@
 );%0A%09
-%09%09%09%7D%0A%09%09%09
+%7D%0A
 %09ret
@@ -810,30 +810,26 @@
 ue;%0A
-%09%09
      %7D%0A
-%09%09%09
+    
  else%7B%0A
-%09%09%09
 %09ret
@@ -844,11 +844,8 @@
 e;%0A%09
-%09%09 
 %7D%0A  

Update PlayerToggle.java