Add a sane limit for name length
Dieser Commit ist enthalten in:
Ursprung
219686bdab
Commit
d27e6d0c54
@ -574,7 +574,19 @@
|
||||
}
|
||||
|
||||
this.dead = true;
|
||||
@@ -1721,7 +2081,26 @@
|
||||
@@ -1670,6 +2030,11 @@
|
||||
}
|
||||
|
||||
public void setCustomName(String s) {
|
||||
+ // CraftBukkit start - Add a sane limit for name length
|
||||
+ if (s.length() > 256) {
|
||||
+ s = s.substring(0, 256);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
this.datawatcher.watch(2, s);
|
||||
}
|
||||
|
||||
@@ -1721,7 +2086,26 @@
|
||||
}
|
||||
|
||||
public void a(AxisAlignedBB axisalignedbb) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren