Skip to content

Commit e260649

Browse files
author
2908803755@qq.com
committed
add serial version for log objects
1 parent 78b34c5 commit e260649

File tree

9 files changed

+162
-4
lines changed

9 files changed

+162
-4
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
import org.jetbrains.annotations.Nullable;
5050
import org.maxgamer.quickshop.QuickShop;
5151
import org.maxgamer.quickshop.api.chat.ComponentPackage;
52-
import org.maxgamer.quickshop.api.shop.*;
5352
import org.maxgamer.quickshop.api.event.*;
53+
import org.maxgamer.quickshop.api.shop.*;
5454
import org.maxgamer.quickshop.util.Util;
5555
import org.maxgamer.quickshop.util.logging.container.ShopRemoveLog;
5656

@@ -1243,9 +1243,7 @@ public String toString() {
12431243
.append(location.getBlockZ())
12441244
.append(")");
12451245
sb.append(" Owner: ").append(this.ownerName(false)).append(" - ").append(getOwner());
1246-
if (isUnlimited()) {
1247-
sb.append(" Unlimited: true");
1248-
}
1246+
sb.append(", Unlimited: ").append(isUnlimited());
12491247
sb.append(" Price: ").append(getPrice());
12501248
return sb.toString();
12511249
}

src/main/java/org/maxgamer/quickshop/util/logging/container/EconomyTransactionLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is EconomyTransactionLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -10,6 +29,7 @@
1029
@Builder
1130
@Data
1231
public class EconomyTransactionLog {
32+
private static int v = 1;
1333
private boolean success;
1434
private UUID from;
1535
private UUID to;

src/main/java/org/maxgamer/quickshop/util/logging/container/PlayerEconomyPreCheckLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is PlayerEconomyPreCheckLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -8,6 +27,7 @@
827
@AllArgsConstructor
928
@Data
1029
public class PlayerEconomyPreCheckLog {
30+
private static int v = 1;
1131
private boolean beforeTrading;
1232
private UUID player;
1333
private double holding;

src/main/java/org/maxgamer/quickshop/util/logging/container/PluginGlobalAlertLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is PluginGlobalAlertLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -6,5 +25,6 @@
625
@AllArgsConstructor
726
@Data
827
public class PluginGlobalAlertLog {
28+
private static int v = 1;
929
private String content;
1030
}

src/main/java/org/maxgamer/quickshop/util/logging/container/ShopCreationLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is ShopCreationLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -10,6 +29,7 @@
1029
@AllArgsConstructor
1130
@Data
1231
public class ShopCreationLog {
32+
private static int v = 1;
1333
private UUID creator;
1434
private ShopInfoStorage shop;
1535
private Location location;

src/main/java/org/maxgamer/quickshop/util/logging/container/ShopModeratorChangedLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is ShopModeratorChangedLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -8,6 +27,7 @@
827
@AllArgsConstructor
928
@Data
1029
public class ShopModeratorChangedLog {
30+
private static int v = 1;
1131
private ShopInfoStorage shop;
1232
private JavaShopModerator moderator;
1333
}

src/main/java/org/maxgamer/quickshop/util/logging/container/ShopPriceChangedLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is ShopPriceChangedLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -7,6 +26,7 @@
726
@AllArgsConstructor
827
@Data
928
public class ShopPriceChangedLog {
29+
private static int v = 1;
1030
private ShopInfoStorage shop;
1131
private double oldPrice;
1232
private double newPrice;

src/main/java/org/maxgamer/quickshop/util/logging/container/ShopPurchaseLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is ShopPurchaseLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -10,6 +29,7 @@
1029
@AllArgsConstructor
1130
@Data
1231
public class ShopPurchaseLog {
32+
private static int v = 1;
1333
private ShopInfoStorage shop;
1434
private ShopType type;
1535
private UUID trader;

src/main/java/org/maxgamer/quickshop/util/logging/container/ShopRemoveLog.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is a part of project QuickShop, the name is ShopRemoveLog.java
3+
* Copyright (C) PotatoCraft Studio and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License as published by the
7+
* Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT
11+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
* for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*
18+
*/
19+
120
package org.maxgamer.quickshop.util.logging.container;
221

322
import lombok.AllArgsConstructor;
@@ -9,6 +28,7 @@
928
@AllArgsConstructor
1029
@Data
1130
public class ShopRemoveLog {
31+
private static int v = 1;
1232
private UUID player;
1333
private String reason;
1434
private ShopInfoStorage shop;

0 commit comments

Comments
 (0)