diff --git a/MCGalaxy/Commands/building/CmdAbort.cs b/MCGalaxy/Commands/building/CmdAbort.cs
index e7bd7b2cc..dbe990d6c 100644
--- a/MCGalaxy/Commands/building/CmdAbort.cs
+++ b/MCGalaxy/Commands/building/CmdAbort.cs
@@ -15,6 +15,7 @@
or implied. See the Licenses for the specific language governing
permissions and limitations under the Licenses.
*/
+using MCGalaxy.Drawing.Brushes;
using MCGalaxy.Drawing.Transforms;
namespace MCGalaxy.Commands.Building
@@ -36,9 +37,10 @@ namespace MCGalaxy.Commands.Building
p.ModeBlock = Block.Invalid;
p.onTrain = false;
p.isFlying = false;
- p.BrushName = "normal";
+
+ p.BrushName = Brush.DefaultBrush;
+ p.Transform = Transform.DefaultTransform;
p.DefaultBrushArgs = "";
- p.Transform = NoTransform.Instance;
if (p.weapon != null) p.weapon.Disable();
p.Message("Every toggle or action was aborted.");
diff --git a/MCGalaxy/Drawing/Brushes/Brush.cs b/MCGalaxy/Drawing/Brushes/Brush.cs
index f3c97b9bf..f5e300e38 100644
--- a/MCGalaxy/Drawing/Brushes/Brush.cs
+++ b/MCGalaxy/Drawing/Brushes/Brush.cs
@@ -23,6 +23,8 @@ namespace MCGalaxy.Drawing.Brushes
{
public abstract class Brush
{
+ public static string DefaultBrush = "Normal";
+
public abstract string Name { get; }
public virtual void Configure(DrawOp op, Player p) { }
diff --git a/MCGalaxy/Drawing/Transform/Transform.cs b/MCGalaxy/Drawing/Transform/Transform.cs
index 4ed716f6a..ac5030713 100644
--- a/MCGalaxy/Drawing/Transform/Transform.cs
+++ b/MCGalaxy/Drawing/Transform/Transform.cs
@@ -24,6 +24,8 @@ namespace MCGalaxy.Drawing.Transforms
{
public abstract class Transform
{
+ public static Transform DefaultTransform = NoTransform.Instance;
+
public abstract string Name { get; }
public virtual void Configure(DrawOp op, Player p) { }
diff --git a/MCGalaxy/Player/Player.Fields.cs b/MCGalaxy/Player/Player.Fields.cs
index 03c32c16f..5856b8cba 100644
--- a/MCGalaxy/Player/Player.Fields.cs
+++ b/MCGalaxy/Player/Player.Fields.cs
@@ -16,6 +16,7 @@ using System;
using System.Collections.Generic;
using System.Net;
using MCGalaxy.Drawing;
+using MCGalaxy.Drawing.Brushes;
using MCGalaxy.Drawing.Transforms;
using MCGalaxy.Events.PlayerEvents;
using MCGalaxy.Games;
@@ -50,10 +51,12 @@ namespace MCGalaxy {
public bool IsAfk, AutoAfk;
public bool cmdTimer;
public bool UsingWom;
- public string BrushName = "Normal", DefaultBrushArgs = "";
- public Transform Transform = NoTransform.Instance;
public string afkMessage;
public bool ClickToMark = true;
+
+ public string BrushName = Brush.DefaultBrush;
+ public Transform Transform = Transform.DefaultTransform;
+ public string DefaultBrushArgs = "";
/// Account name of the user, plus a trailing '+' if ClassiCubeAccountPlus is enabled
/// Use 'truename' for displaying/logging, use 'name' for storing data